Merge pull request #2204 from reasonerjt/release-1.1.0

handle unexpected error in ldap search
This commit is contained in:
Daniel Jiang 2017-05-03 19:17:17 +08:00 committed by GitHub
commit c97d349fa8

View File

@ -59,7 +59,8 @@ func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) {
ldapUsers, err := ldapUtils.SearchUser(ldapConfs)
if err != nil {
return nil, fmt.Errorf("ldap search fail: %v", err)
log.Warningf("ldap search fail: %v", err)
return nil, nil
}
if len(ldapUsers) == 0 {