summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-09-01 10:03:55 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-09-01 10:03:55 -0400
commit276e0189b1453b3b869f9ae834482d672b832158 (patch)
treeecac47da72f4954491c108b68b296c244a87c151 /model
parente1e29a86d9f7da84d25fe205287eb0a9e0fecd2d (diff)
downloadchat-276e0189b1453b3b869f9ae834482d672b832158.tar.gz
chat-276e0189b1453b3b869f9ae834482d672b832158.tar.bz2
chat-276e0189b1453b3b869f9ae834482d672b832158.zip
Making LDAP FirstName and LastName fields optional. (#3919)
Diffstat (limited to 'model')
-rw-r--r--model/config.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/model/config.go b/model/config.go
index 32cb501a0..eedd0d116 100644
--- a/model/config.go
+++ b/model/config.go
@@ -1013,14 +1013,6 @@ func (o *Config) IsValid() *AppError {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_basedn", nil, "")
}
- if *o.LdapSettings.FirstNameAttribute == "" {
- return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_firstname", nil, "")
- }
-
- if *o.LdapSettings.LastNameAttribute == "" {
- return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_lastname", nil, "")
- }
-
if *o.LdapSettings.EmailAttribute == "" {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_email", nil, "")
}