Merge pull request #5 from naominitel/anon-bind-open

Calling .bind() is required even when doing an anonymous bind.
2
Marco Huenseler 6 years ago committed by GitHub
commit aab208e7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save