mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-27 11:07:46 +01:00
Merge pull request #2204 from reasonerjt/release-1.1.0
handle unexpected error in ldap search
This commit is contained in:
commit
c97d349fa8
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user