diff options
author | Marco Huenseler <marcoh.huenseler+git@gmail.com> | 2017-08-04 17:45:29 +0200 |
---|---|---|
committer | Marco Huenseler <marcoh.huenseler+git@gmail.com> | 2017-08-04 17:45:29 +0200 |
commit | d708583ed3ae8baa28997efd68dfe88325881084 (patch) | |
tree | b3ff91a8b7e075e6b17a86b1382f4a9c7cb113e8 | |
parent | Add README (diff) | |
download | radicale_auth_ldap-d708583ed3ae8baa28997efd68dfe88325881084.tar.gz radicale_auth_ldap-d708583ed3ae8baa28997efd68dfe88325881084.tar.bz2 radicale_auth_ldap-d708583ed3ae8baa28997efd68dfe88325881084.zip |
Fix #1: LDAPInvalidCredentialsResult reference
-rw-r--r-- | radicale_auth_ldap/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/radicale_auth_ldap/__init__.py b/radicale_auth_ldap/__init__.py index 859c7c6..d04c43b 100644 --- a/radicale_auth_ldap/__init__.py +++ b/radicale_auth_ldap/__init__.py @@ -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) |