mirror of
https://github.com/jdupouy/radicale3-auth-ldap.git
synced 2024-10-27 19:14:00 +00:00
Fix #1: LDAPInvalidCredentialsResult reference
This commit is contained in:
parent
32a4c7c9e3
commit
d708583ed3
@ -26,6 +26,7 @@ Authentication based on the ``ldap3`` module
|
||||
"""
|
||||
|
||||
import ldap3
|
||||
import ldap3.core.exceptions
|
||||
import ldap3.utils.dn
|
||||
|
||||
from radicale.auth import BaseAuth
|
||||
@ -84,7 +85,7 @@ class Auth(BaseAuth):
|
||||
else:
|
||||
self.logger.debug("LDAP bind failed")
|
||||
return False
|
||||
except ldap3.LDAPInvalidCredentialsResult:
|
||||
except ldap3.core.exceptions.LDAPInvalidCredentialsResult:
|
||||
self.logger.debug("LDAP invalid credentials")
|
||||
except Exception as err:
|
||||
self.logger.debug("LDAP error %s" % err)
|
||||
|
Loading…
Reference in New Issue
Block a user