Documentation
¶
Index ¶
Constants ¶
View Source
const ( BADPASSWORDERROR = "authentication failed: bad password" USERNOTFOUNDEROR = "authentication failed: username not found" DISABLEDUSERERROR = "authentication failed: user is disabled" BADFILTERERROR = "server error: a filter returned multiple entrees" )
Error messages.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeMapper ¶
AttributeMapper is an interface to retreive and map attributes during authentication. Attributes should return a string of attributes to grab during an LDAP search. MapAttributes should map attributes from an Entry into the implementor.
type LDAP ¶
type LDAP struct {
Label string // Friendly string `Acme Inc.`
Address string // Host:Port `192.168.1.2:389`
UID string // 'sAMAAccountName'
Method string // 'plain', 'tls', 'ssl'
Insecure bool // Use if using an self-signed certificate.
BindDN string // CN=some person,DC=example,DC=.com
Password string // Password to bind with, will be stored in plaintext.
IsActiveDirectory bool // Is an active directory environment.
BaseSearch string // Base search for users.
UserFilter string // Only allow users of this filter to login.
AdminFilter string // Users matching this filter will be made admins.
}
LDAP holds configuration information to connect to an LDAP service and search for and authenticate users.
Click to show internal directories.
Click to hide internal directories.