Calling .bind() is required even when doing an anonymous bind.

This commit is contained in:
Naomi Nitel 2018-02-07 11:17:44 +01:00
parent ee04ae08ae
commit a7ed464d23

View File

@ -47,9 +47,9 @@ class Auth(BaseAuth):
if BINDDN and PASSWORD: if BINDDN and PASSWORD:
conn = ldap3.Connection(SERVER, BINDDN, PASSWORD) conn = ldap3.Connection(SERVER, BINDDN, PASSWORD)
conn.bind()
else: else:
conn = ldap3.Connection(SERVER) conn = ldap3.Connection(SERVER)
conn.bind()
try: try:
self.logger.debug("LDAP whoami: %s" % conn.extend.standard.who_am_i()) self.logger.debug("LDAP whoami: %s" % conn.extend.standard.who_am_i())