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:
Oleg Gaidarenko
2019-08-19 00:52:32 +03:00
committed by GitHub
parent 302a1f06bc
commit 02af966964
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -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{
{}, {},