Versions in this module Expand all Collapse all v3 v3.8.0 May 1, 2026 Changes in this version + func DecodeDN(str string) (string, error) + func NormalizeDN(dn string) (string, error) + type BaseDNInfo struct + Original string + Parsed *ldap.DN + ServerDN string + type Config struct + Enabled bool + GroupSearchBaseDistName string + GroupSearchFilter string + LookupBindDN string + LookupBindPassword string + SRVRecordName string + ServerAddr string + ServerInsecure bool + ServerStartTLS bool + TLS *tls.Config + UserDNAttributes string + UserDNSearchBaseDistName string + UserDNSearchFilter string + func (l *Config) Clone() (cloned Config) + func (l *Config) Connect() (ldapConn *ldap.Conn, err error) + func (l *Config) GetGroupSearchBaseDistNames() []BaseDNInfo + func (l *Config) GetUserDNAttributesList() []string + func (l *Config) GetUserDNSearchBaseDistNames() []BaseDNInfo + func (l *Config) LookupBind(conn *ldap.Conn) error + func (l *Config) LookupUsername(conn *ldap.Conn, username string) (*DNSearchResult, error) + func (l *Config) SearchForUserGroups(conn *ldap.Conn, username, bindDN string) ([]string, error) + func (l *Config) Validate() Validation + func (l *Config) ValidateLookup(testUsername string) (*UserLookupResult, Validation) + func (l *Config) ValidateOffline() Validation + type DNSearchResult struct + ActualDN string + Attributes map[string][]string + NormDN string + func LookupDN(conn *ldap.Conn, dn string, attrs []string) (*DNSearchResult, error) + type Result string + const ConfigOk + const ConnectionParamMisconfigured + const ConnectivityError + const GroupMembershipsLookupError + const GroupSearchParamsMisconfigured + const LookupBindError + const UserDNLookupError + const UserSearchParamsMisconfigured + type UserLookupResult struct + DN string + DNAttributes map[string][]string + GroupDNMemberships []string + type Validation struct + Detail string + ErrCause error + Result Result + Suggestion string + func (v Validation) Error() string + func (v Validation) FormatError() string + func (v Validation) IsOk() bool