mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Enable low-level LDAP debugging.
This commit is contained in:
parent
f0401a9127
commit
371ce528fb
@ -281,7 +281,7 @@ class ldap2(CrudBackend, Encoder):
|
||||
@encode_args(2, 3, 'bind_dn', 'bind_pw')
|
||||
def create_connection(self, ccache=None, bind_dn='', bind_pw='',
|
||||
tls_cacertfile=None, tls_certfile=None, tls_keyfile=None,
|
||||
debug_level=255):
|
||||
debug_level=0):
|
||||
"""
|
||||
Connect to LDAP server.
|
||||
|
||||
@ -305,6 +305,9 @@ class ldap2(CrudBackend, Encoder):
|
||||
if tls_keyfile is not None:
|
||||
_ldap.set_option(_ldap.OPT_X_TLS_KEYFILE, tls_keyfile)
|
||||
|
||||
if debug_level:
|
||||
_ldap.set_option(_ldap.OPT_X_DEBUG_LEVEL, debug_level)
|
||||
|
||||
try:
|
||||
conn = _ldap.initialize(self.ldap_uri)
|
||||
if ccache is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user