Documentation ¶
Index ¶
- func AttributesToPrincipal(attribs []*ldapv2.EntryAttribute, ...) (*v3.Principal, error)
- func AuthenticateServiceAccountUser(serviceAccountPassword string, serviceAccountUsername string, ...) error
- func Connect(config *v3.LdapConfig, caPool *x509.CertPool) (*ldapv2.Conn, error)
- func FindNonDuplicateBetweenGroupPrincipals(newGroupPrincipals []v3.Principal, groupPrincipals []v3.Principal, ...) []v3.Principal
- func GatherParentGroups(groupPrincipal v3.Principal, searchDomain string, groupScope string, ...) error
- func GetAttributeValuesByName(search []*ldapv2.EntryAttribute, attributeName string) []string
- func GetGroupSearchAttributes(memberOfAttribute, ObjectClass string, config *v3.ActiveDirectoryConfig) []string
- func GetGroupSearchAttributesForLDAP(ObjectClass string, config *v3.LdapConfig) []string
- func GetUserExternalID(username string, loginDomain string) string
- func GetUserSearchAttributes(memberOfAttribute, ObjectClass string, config *v3.ActiveDirectoryConfig) []string
- func GetUserSearchAttributesForLDAP(ObjectClass string, config *v3.LdapConfig) []string
- func HasPermission(attributes []*ldapv2.EntryAttribute, userObjectClass string, ...) bool
- func IsType(search []*ldapv2.EntryAttribute, varType string) bool
- func Min(a int, b int) int
- func NewCAPool(cert string) (*x509.CertPool, error)
- func NewLDAPConn(servers []string, TLS bool, port int64, connectionTimeout int64, ...) (*ldapv2.Conn, error)
- func ValidateLdapConfig(ldapConfig *v3.LdapConfig, certpool *x509.CertPool) (bool, error)
- type ConfigAttributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributesToPrincipal ¶
func GatherParentGroups ¶
func GetAttributeValuesByName ¶
func GetAttributeValuesByName(search []*ldapv2.EntryAttribute, attributeName string) []string
func GetGroupSearchAttributes ¶
func GetGroupSearchAttributes(memberOfAttribute, ObjectClass string, config *v3.ActiveDirectoryConfig) []string
func GetGroupSearchAttributesForLDAP ¶
func GetGroupSearchAttributesForLDAP(ObjectClass string, config *v3.LdapConfig) []string
func GetUserExternalID ¶
func GetUserSearchAttributes ¶
func GetUserSearchAttributes(memberOfAttribute, ObjectClass string, config *v3.ActiveDirectoryConfig) []string
func GetUserSearchAttributesForLDAP ¶
func GetUserSearchAttributesForLDAP(ObjectClass string, config *v3.LdapConfig) []string
func HasPermission ¶
func NewLDAPConn ¶
func ValidateLdapConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.