Skip to content

Commit bb6a098

Browse files
author
OpenShift Bot
authored
Merge pull request #9706 from liggitt/ldap-logging
Merged by openshift-bot
2 parents 8d1e467 + 4d27836 commit bb6a098

File tree

1 file changed

+3
-0
lines changed
  • pkg/auth/authenticator/password/ldappassword

1 file changed

+3
-0
lines changed

pkg/auth/authenticator/password/ldappassword/ldap.go

+3
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ func (a *Authenticator) getIdentity(username, password string) (authapi.UserIden
9595

9696
if bindDN, bindPassword := a.options.ClientConfig.GetBindCredentials(); len(bindDN) > 0 {
9797
if err := l.Bind(bindDN, bindPassword); err != nil {
98+
// If the configured bindDN/bindPassword encounters errors, that blocks all logins
99+
// Handle as a severe error in addition to returning an error to fail this particular login
100+
utilruntime.HandleError(fmt.Errorf("error binding to %s for search phase: %v", bindDN, err))
98101
return nil, false, err
99102
}
100103
}

0 commit comments

Comments
 (0)