1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-13 22:29:52 +02:00

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

View File

@ -261,6 +261,16 @@ class Backend(ldapcherry.backend.Backend):
else: else:
attrlist = None 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 # bind and search the ldap
ldap_client = self._bind() ldap_client = self._bind()
try: try: