aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaomi Nitel <naominitel@gmail.com>2018-02-07 11:17:44 +0100
committerNaomi Nitel <naominitel@gmail.com>2018-02-07 11:17:44 +0100
commita7ed464d230a94f186e9c4ac433acaa399ed0897 (patch)
tree48988ce7ab4ba597557f0c6b4b041bb8c1f7982d
parentFix #1: Test for LDAPInvalidCredentialsResult (diff)
downloadradicale_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__.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