Browse Source

LDAP auth: fix _login2() by importing ldap.filter

Peter Marschall 5 months ago
parent
commit
5c4a0578b0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      radicale/auth/ldap.py

+ 1 - 0
radicale/auth/ldap.py

@@ -80,6 +80,7 @@ class Auth(auth.BaseAuth):
         except ImportError:
             try:
                 import ldap
+                import ldap.filter
                 self._ldap_module_version = 2
                 self.ldap = ldap
             except ImportError as e: