From 00291c652ed7dba4649d50243bbde1633722d3df Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 26 Jul 2016 10:25:27 -0400 Subject: Removing validation on LDAP bind username and password (#3670) --- 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 d7e4cac91..05d574cb2 100644 --- a/model/config.go +++ b/model/config.go @@ -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, "") } -- cgit v1.2.3-1-g7c22