Skip to content

Commit 4686904

Browse files
author
Kota Tsuyuzaki
committed
Add ldap3.core.exceptions.LDAPSocketReceiveError in exception case
1 parent d6d8151 commit 4686904

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ldapauthenticator/ldapauthenticator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,13 +327,15 @@ def get_connection(self, userdn, password):
327327
except (
328328
ldap3.core.exceptions.LDAPSocketOpenError,
329329
ldap3.core.exceptions.LDAPBindError,
330+
ldap3.core.exceptions.LDAPSocketReceiveError,
330331
):
331332
for server, port in self._get_secondary_servers():
332333
try:
333334
return self._get_real_connection(userdn, password, server, port)
334335
except (
335336
ldap3.core.exceptions.LDAPSocketOpenError,
336337
ldap3.core.exceptions.LDAPBindError,
338+
ldap3.core.exceptions.LDAPSocketReceiveError,
337339
):
338340
continue
339341
else:

0 commit comments

Comments
 (0)