ldap

package
v0.0.0-...-46e61fc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvLdapHost               = "HORUSEC_LDAP_HOST"
	EnvLdapPort               = "HORUSEC_LDAP_PORT"
	EnvLdapBase               = "HORUSEC_LDAP_BASE"
	EnvLdapBindDn             = "HORUSEC_LDAP_BINDDN"
	EnvLdapBindPassword       = "HORUSEC_LDAP_BINDPASSWORD" //nolint:gosec // false positive
	EnvLdapUseSSL             = "HORUSEC_LDAP_USESSL"
	EnvLdapSkipTLS            = "HORUSEC_LDAP_SKIP_TLS"
	EnvLdapInsecureSkipVerify = "HORUSEC_LDAP_INSECURE_SKIP_VERIFY"
	EnvLdapUserFilter         = "HORUSEC_LDAP_USERFILTER"
	EnvLdapAdminGroup         = "HORUSEC_LDAP_ADMIN_GROUP"
	DefaultLdapUserFilter     = "(sAMAccountName=%s)"
)

Variables

View Source
var ErrorEmptyBindDNOrBindPassword = errors.New("{LDAP} empty bind dn or bind password")
View Source
var ErrorInvalidAuthorizationType = errors.New("{LDAP} invalid authorization type")
View Source
var ErrorLdapApplicationAdminGroupNotSet = errors.New("{LDAP} horusec application admin group env not set")
View Source
var ErrorLdapUnauthorized = errors.New("{LDAP} it was not possible to authorize your login with these credentials")
View Source
var ErrorTooManyEntries = errors.New("{LDAP} too many entries returned")
View Source
var ErrorUserDoesNotExist = errors.New("{LDAP} user does not exist")
View Source
var ErrorWrongUserOrPassword = errors.New("{LDAP} wrong user or password")

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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