2019-04-25 04:52:08 +07:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// LDAPAuthenticationBackendConfiguration represents the configuration related to LDAP server.
|
|
|
|
type LDAPAuthenticationBackendConfiguration struct {
|
2020-01-22 03:56:44 +07:00
|
|
|
URL string `mapstructure:"url"`
|
|
|
|
SkipVerify bool `mapstructure:"skip_verify"`
|
|
|
|
BaseDN string `mapstructure:"base_dn"`
|
|
|
|
AdditionalUsersDN string `mapstructure:"additional_users_dn"`
|
|
|
|
UsersFilter string `mapstructure:"users_filter"`
|
|
|
|
AdditionalGroupsDN string `mapstructure:"additional_groups_dn"`
|
|
|
|
GroupsFilter string `mapstructure:"groups_filter"`
|
|
|
|
GroupNameAttribute string `mapstructure:"group_name_attribute"`
|
|
|
|
MailAttribute string `mapstructure:"mail_attribute"`
|
|
|
|
User string `mapstructure:"user"`
|
|
|
|
Password string `mapstructure:"password"`
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// FileAuthenticationBackendConfiguration represents the configuration related to file-based backend
|
|
|
|
type FileAuthenticationBackendConfiguration struct {
|
2020-01-22 03:56:44 +07:00
|
|
|
Path string `mapstructure:"path"`
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// AuthenticationBackendConfiguration represents the configuration related to the authentication backend.
|
|
|
|
type AuthenticationBackendConfiguration struct {
|
2020-01-22 03:56:44 +07:00
|
|
|
Ldap *LDAPAuthenticationBackendConfiguration `mapstructure:"ldap"`
|
|
|
|
File *FileAuthenticationBackendConfiguration `mapstructure:"file"`
|
2019-04-25 04:52:08 +07:00
|
|
|
}
|