diff options
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index e7ab07f8c..666b2770b 100644 --- a/model/config.go +++ b/model/config.go @@ -169,6 +169,9 @@ type LdapSettings struct { BindUsername *string BindPassword *string + // Filtering + UserFilter *string + // User Mapping FirstNameAttribute *string LastNameAttribute *string @@ -366,6 +369,11 @@ func (o *Config) SetDefaults() { *o.LdapSettings.Enable = false } + if o.LdapSettings.UserFilter == nil { + o.LdapSettings.UserFilter = new(string) + *o.LdapSettings.UserFilter = "" + } + if o.ServiceSettings.SessionLengthWebInDays == nil { o.ServiceSettings.SessionLengthWebInDays = new(int) *o.ServiceSettings.SessionLengthWebInDays = 30 |