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 ¶
View Source
var (
Authensource []Ldapsource
)
Global LDAP directory pool
Functions ¶
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 BaseDN string // Base DN Attributes string // Attribut to search Filter string // Query filter to validate entry MsAdSAFormat string // in the case of MS AD Simple Authen, the format to use (see: http://msdn.microsoft.com/en-us/library/cc223499.aspx) Enabled bool // if this source is disabled }
Basic LDAP authentication service
func (Ldapsource) SearchEntry ¶ added in v0.4.0
func (ls Ldapsource) SearchEntry(name, passwd string) (string, bool)
searchEntry : search an LDAP source if an entry (name, passwd) is valide and in the specific filter
Click to show internal directories.
Click to hide internal directories.