ldap

package
v2.0.16-rc1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticateServiceAccountUser

func AuthenticateServiceAccountUser(serviceAccountPassword string, serviceAccountUsername string, defaultLoginDomain string, lConn *ldapv2.Conn) error

func EscapeLDAPSearchFilter

func EscapeLDAPSearchFilter(filter string) string

func GetGroupSearchAttributes

func GetGroupSearchAttributes(memberOfAttribute, objectClassAttribute string, config *v3.ActiveDirectoryConfig) []string

func GetGroupSearchAttributesForLDAP

func GetGroupSearchAttributesForLDAP(config *v3.LdapConfig) []string

func GetUserExternalID

func GetUserExternalID(username string, loginDomain string) string

func GetUserSearchAttributes

func GetUserSearchAttributes(memberOfAttribute, objectClassAttribute string, config *v3.ActiveDirectoryConfig) []string

func GetUserSearchAttributesForLDAP

func GetUserSearchAttributesForLDAP(config *v3.LdapConfig) []string

func HasPermission

func HasPermission(attributes []*ldapv2.EntryAttribute, userObjectClass string, userEnabledAttribute string, userDisabledBitMask int64) bool

func IsType

func IsType(search []*ldapv2.EntryAttribute, varType string) bool

func Min

func Min(a int, b int) int

func NewLDAPConn

func NewLDAPConn(servers []string, TLS bool, port int64, connectionTimeout int64, caPool *x509.CertPool) (*ldapv2.Conn, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL