From 276e0189b1453b3b869f9ae834482d672b832158 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 1 Sep 2016 10:03:55 -0400 Subject: Making LDAP FirstName and LastName fields optional. (#3919) --- model/config.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'model/config.go') 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, "") } -- cgit v1.2.3-1-g7c22