Documentation
¶
Overview ¶
Package ldap provide functions & structure to query a LDAP ldap directory For now, it's mainly tested again an MS Active Directory service, see README.md for more information
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ldapsource ¶ added in v0.4.0
type Ldapsource struct {
Name string // canonical name (ie. corporate.ad)
Host string // LDAP host
Port int // port number
UseSSL bool // Use SSL
BindDN string // DN to bind with
BindPassword string // Bind DN password
UserBase string // Base search path for users
AttributeName string // First name attribute
AttributeSurname string // Surname attribute
AttributeMail string // E-mail attribute
Filter string // Query filter to validate entry
AdminFilter string // Query filter to check if user is admin
Enabled bool // if this source is disabled
}
Basic LDAP authentication service
func (Ldapsource) FindUserDN ¶ added in v0.6.9
func (ls Ldapsource) FindUserDN(name string) (string, bool)
func (Ldapsource) SearchEntry ¶ added in v0.4.0
searchEntry : search an LDAP source if an entry (name, passwd) is valid and in the specific filter
Click to show internal directories.
Click to hide internal directories.