diff options
author | Naomi Nitel <naominitel@gmail.com> | 2018-02-07 11:17:44 +0100 |
---|---|---|
committer | Naomi Nitel <naominitel@gmail.com> | 2018-02-07 11:17:44 +0100 |
commit | a7ed464d230a94f186e9c4ac433acaa399ed0897 (patch) | |
tree | 48988ce7ab4ba597557f0c6b4b041bb8c1f7982d | |
parent | Fix #1: Test for LDAPInvalidCredentialsResult (diff) | |
download | radicale_auth_ldap-a7ed464d230a94f186e9c4ac433acaa399ed0897.tar.gz radicale_auth_ldap-a7ed464d230a94f186e9c4ac433acaa399ed0897.tar.bz2 radicale_auth_ldap-a7ed464d230a94f186e9c4ac433acaa399ed0897.zip |
Calling .bind() is required even when doing an anonymous bind.
-rw-r--r-- | radicale_auth_ldap/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radicale_auth_ldap/__init__.py b/radicale_auth_ldap/__init__.py index 5ef2b13..49edd93 100644 --- a/radicale_auth_ldap/__init__.py +++ b/radicale_auth_ldap/__init__.py @@ -47,9 +47,9 @@ class Auth(BaseAuth): if BINDDN and PASSWORD: conn = ldap3.Connection(SERVER, BINDDN, PASSWORD) - conn.bind() else: conn = ldap3.Connection(SERVER) + conn.bind() try: self.logger.debug("LDAP whoami: %s" % conn.extend.standard.who_am_i()) |