Add LDAP tracing
This commit is contained in:
parent
d8048b09d2
commit
a36266f758
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ class LDAPConnection(object):
|
|||
self._conn = None
|
||||
|
||||
def __enter__(self):
|
||||
self._conn = ldap.initialize(self._ldap_uri)
|
||||
self._conn = ldap.initialize(self._ldap_uri, trace_level=1)
|
||||
self._conn.simple_bind_s(self._user_dn, self._user_pw)
|
||||
return self._conn
|
||||
|
||||
|
|
Reference in a new issue