Versions in this module Expand all Collapse all v1 v1.0.6 Sep 13, 2015 Changes in this version + const DerefAliasesAlways + const DerefAliasesFinding + const DerefAliasesNever + const DerefAliasesSearching + func DetermineLDAPFilter(filter string) (string, error) + func DetermineLDAPHost(hostport string, scheme Scheme) (string, error) + func SplitLDAPQuery(query string) (attributes, scope, filter, extensions string, err error) + type DefaultLDAPUserIdentityFactory struct + Definer LDAPUserAttributeDefiner + ProviderName string + func (f *DefaultLDAPUserIdentityFactory) IdentityFor(user *ldap.Entry) (identity authapi.UserIdentityInfo, err error) + type DerefAliases int + func DetermineDerefAliasesBehavior(derefAliasesString string) (DerefAliases, error) + type LDAPClientConfig struct + Host string + Insecure bool + Scheme Scheme + TLSConfig *tls.Config + func NewLDAPClientConfig(url LDAPURL, insecure bool, tlsConfig *tls.Config) LDAPClientConfig + func (l *LDAPClientConfig) Connect() (*ldap.Conn, error) + type LDAPURL struct + BaseDN string + Filter string + Host string + QueryAttribute string + Scheme Scheme + Scope Scope + func ParseURL(ldapURL string) (LDAPURL, error) + type LDAPUserAttributeDefiner struct + func NewLDAPUserAttributeDefiner(attributeMapping serverapi.LDAPAttributeMapping) LDAPUserAttributeDefiner + func (d *LDAPUserAttributeDefiner) AllAttributes() util.StringSet + func (d *LDAPUserAttributeDefiner) Email(user *ldap.Entry) string + func (d *LDAPUserAttributeDefiner) ID(user *ldap.Entry) string + func (d *LDAPUserAttributeDefiner) Name(user *ldap.Entry) string + func (d *LDAPUserAttributeDefiner) PreferredUsername(user *ldap.Entry) string + type LDAPUserIdentityFactory interface + IdentityFor func(user *ldap.Entry) (identity authapi.UserIdentityInfo, err error) + type Scheme string + const SchemeLDAP + const SchemeLDAPS + func DetermineLDAPScheme(scheme string) (Scheme, error) + type Scope int + const ScopeBaseObject + const ScopeSingleLevel + const ScopeWholeSubtree + func DetermineLDAPScope(scope string) (Scope, error)