adding a debug log to help figure out issues with filters.

This commit is contained in:
kakwa 2019-02-12 22:43:03 +01:00
parent d690bbdc41
commit 7ac7118c9a
1 changed files with 10 additions and 0 deletions

View File

@ -261,6 +261,16 @@ class Backend(ldapcherry.backend.Backend):
else:
attrlist = None
self._logger(
severity=logging.DEBUG,
msg="%(backend)s: executing search "
"with filter '%(filter)s' in DN '%(dn)s'" % {
'backend': self.backend_name,
'dn': basedn,
'filter': searchfilter
}
)
# bind and search the ldap
ldap_client = self._bind()
try: