Load LLDAP organizational unit config
This commit is contained in:
parent
937cb39de6
commit
06d20c3379
2 changed files with 43 additions and 7 deletions
|
|
@ -6,26 +6,26 @@ package lldap
|
|||
// Config holds all connection parameters for the LLDAP adapter.
|
||||
type Config struct {
|
||||
// URL is the LDAP server address, e.g. "ldap://lldap:389" or "ldaps://lldap:636".
|
||||
URL string
|
||||
URL string `yaml:"url"`
|
||||
|
||||
// BindDN is the distinguished name used for the service account bind,
|
||||
// e.g. "cn=admin,dc=netkingdom,dc=local".
|
||||
BindDN string
|
||||
BindDN string `yaml:"bindDN"`
|
||||
|
||||
// BindPW is the service account password.
|
||||
BindPW string
|
||||
BindPW string `yaml:"bindPW"`
|
||||
|
||||
// BaseDN is the search base, e.g. "dc=netkingdom,dc=local".
|
||||
BaseDN string
|
||||
BaseDN string `yaml:"baseDN"`
|
||||
|
||||
// UserOU is the organisational unit for users. Defaults to "ou=users" when empty.
|
||||
UserOU string
|
||||
UserOU string `yaml:"userOU,omitempty"`
|
||||
|
||||
// GroupOU is the organisational unit for groups. Defaults to "ou=groups" when empty.
|
||||
GroupOU string
|
||||
GroupOU string `yaml:"groupOU,omitempty"`
|
||||
|
||||
// TLSSkipVerify disables TLS certificate verification. For development only.
|
||||
TLSSkipVerify bool
|
||||
TLSSkipVerify bool `yaml:"tlsSkipVerify,omitempty"`
|
||||
}
|
||||
|
||||
// userOU returns the effective UserOU, falling back to the default.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue