Add LDAP tracing

This commit is contained in:
Joseph Schorr 2015-02-27 17:01:46 -05:00
parent d8048b09d2
commit a36266f758

View file

@ -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