aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Huenseler <marcoh.huenseler+git@gmail.com>2018-02-11 13:06:30 +0100
committerGitHub <noreply@github.com>2018-02-11 13:06:30 +0100
commitaab208e7fd66179131ada230bdd23f37f0127a82 (patch)
tree48988ce7ab4ba597557f0c6b4b041bb8c1f7982d
parentFix #1: Test for LDAPInvalidCredentialsResult (diff)
parentCalling .bind() is required even when doing an anonymous bind. (diff)
downloadradicale_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__.py2
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())
bgstack15