mirror of
https://github.com/jdupouy/radicale3-auth-ldap.git
synced 2024-10-27 19:14:00 +00:00
Calling .bind() is required even when doing an anonymous bind.
This commit is contained in:
parent
ee04ae08ae
commit
a7ed464d23
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user