From a7ed464d230a94f186e9c4ac433acaa399ed0897 Mon Sep 17 00:00:00 2001 From: Naomi Nitel Date: Wed, 7 Feb 2018 11:17:44 +0100 Subject: Calling .bind() is required even when doing an anonymous bind. --- radicale_auth_ldap/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- cgit