]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb-samba: matching rules: notify of search failure in transitive filter
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 27 Dec 2023 23:45:41 +0000 (12:45 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 22 Mar 2024 05:03:35 +0000 (05:03 +0000)
It can be very hard to known where transitive checks fail, and this
will help.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15515

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ldb-samba/ldb_matching_rules.c

index 59d1385f4e367893352003623a223d80d29487af..dd1f80628c980cb35fd6955d63942eedf94eadba 100644 (file)
@@ -74,6 +74,11 @@ static int ldb_eval_transitive_filter_helper(TALLOC_CTX *mem_ctx,
                             attrs,
                             DSDB_MARK_REQ_UNTRUSTED);
        if (ret != LDB_SUCCESS) {
+               DBG_NOTICE("search failure (%d: %s) looking for '%s' on '%s'\n",
+                          ret,
+                          ldb_strerror(ret),
+                          attr,
+                          ldb_dn_get_linearized(to_visit->dn));
                talloc_free(tmp_ctx);
                return ret;
        }