ldap

package
v2.1.0-rc4+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributesToPrincipal

func AttributesToPrincipal(attribs []*ldapv2.EntryAttribute, dnStr, scope, providerName, userObjectClass, userNameAttribute, userLoginAttribute, groupObjectClass, groupNameAttribute string) (*v3.Principal, error)

func AuthenticateServiceAccountUser

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

func GetGroupSearchAttributes

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

func GetGroupSearchAttributesForLDAP

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

func GetUserExternalID

func GetUserExternalID(username string, loginDomain string) string

func GetUserSearchAttributes

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

func GetUserSearchAttributesForLDAP

func GetUserSearchAttributesForLDAP(ObjectClass string, 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