Removing validation on LDAP bind username and password (#3670)

This commit is contained in:
Christopher Speller
2016-07-26 10:25:27 -04:00
committed by Joram Wilander
parent 13b7368f9d
commit 00291c652e

View File

@@ -931,14 +931,6 @@ func (o *Config) IsValid() *AppError {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_basedn", nil, "")
}
if *o.LdapSettings.BindUsername == "" {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_bind_username", nil, "")
}
if *o.LdapSettings.BindPassword == "" {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_bind_password", nil, "")
}
if *o.LdapSettings.FirstNameAttribute == "" {
return NewLocAppError("Config.IsValid", "model.config.is_valid.ldap_firstname", nil, "")
}