diff options
author | Marco Huenseler <marcoh.huenseler+git@gmail.com> | 2018-02-11 13:06:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-11 13:06:30 +0100 |
commit | aab208e7fd66179131ada230bdd23f37f0127a82 (patch) | |
tree | 48988ce7ab4ba597557f0c6b4b041bb8c1f7982d | |
parent | Fix #1: Test for LDAPInvalidCredentialsResult (diff) | |
parent | Calling .bind() is required even when doing an anonymous bind. (diff) | |
download | radicale_auth_ldap-aab208e7fd66179131ada230bdd23f37f0127a82.tar.gz radicale_auth_ldap-aab208e7fd66179131ada230bdd23f37f0127a82.tar.bz2 radicale_auth_ldap-aab208e7fd66179131ada230bdd23f37f0127a82.zip |
Merge pull request #5 from naominitel/anon-bind-open
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()) |