diff --git a/ldapcherry/backend/backendLdap.py b/ldapcherry/backend/backendLdap.py index 83fb857..fb3529a 100644 --- a/ldapcherry/backend/backendLdap.py +++ b/ldapcherry/backend/backendLdap.py @@ -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: