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 SecurityProtocol ¶
type SecurityProtocol int
const ( SECURITY_PROTOCOL_UNENCRYPTED SecurityProtocol = iota SECURITY_PROTOCOL_LDAPS SECURITY_PROTOCOL_START_TLS )
Note: new type must be added at the end of list to maintain compatibility.
type Source ¶
type Source struct { Host string // LDAP host Port int // port number SecurityProtocol SecurityProtocol SkipVerify bool BindDN string `ini:"bind_dn,omitempty"` // DN to bind with BindPassword string `ini:",omitempty"` // Bind DN password UserBase string `ini:",omitempty"` // Base search path for users UserDN string `ini:"user_dn,omitempty"` // Template for the DN of the user for simple auth AttributeUsername string // Username attribute AttributeName string // First name attribute AttributeSurname string // Surname attribute AttributeMail string // E-mail attribute AttributesInBind bool // fetch attributes in bind context (not user) Filter string // Query filter to validate entry AdminFilter string // Query filter to check if user is admin GroupEnabled bool // if the group checking is enabled GroupDN string `ini:"group_dn"` // Group Search Base GroupFilter string // Group Name Filter GroupMemberUID string `ini:"group_member_uid"` // Group Attribute containing array of UserUID UserUID string `ini:"user_uid"` // User Attribute listed in Group }
Basic LDAP authentication service
Click to show internal directories.
Click to hide internal directories.