LDAP: multildap + ldap integration (#18588)
It seems `ldap` module introduced new error type of which multildap module didn't know about. This broke the multildap login logic Fixes #18491 Ref #18587
This commit is contained in:
@@ -82,10 +82,10 @@ func TestMultiLDAP(t *testing.T) {
|
||||
teardown()
|
||||
})
|
||||
|
||||
Convey("Should still call a second error for invalid cred error", func() {
|
||||
Convey("Should still call a second error for invalid not found error", func() {
|
||||
mock := setup()
|
||||
|
||||
mock.loginErrReturn = ErrInvalidCredentials
|
||||
mock.loginErrReturn = ErrCouldNotFindUser
|
||||
|
||||
multi := New([]*ldap.ServerConfig{
|
||||
{}, {},
|
||||
|
||||
Reference in New Issue
Block a user