diff options
author | Andrew Bartlett <abartlet@samba.org> | 2022-12-15 18:52:20 +1300 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2023-02-03 09:35:08 +0000 |
commit | deac11ab428b73a712da15f55be135f2741be14d (patch) | |
tree | 82627f75124d6f9ab801639f2c88ae8a727ba054 | |
parent | 4413c277ef09dfba6d9d69bfa2886402bcc5c369 (diff) | |
download | samba-deac11ab428b73a712da15f55be135f2741be14d.tar.gz |
s4-dsdb: Add better debugging to dsdb_objects_have_same_nc()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10635
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 0f501b2316af6568003e520848c1ec80c286fd36)
-rw-r--r-- | source4/dsdb/common/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c index 97444fc1d3e..58eef3abb66 100644 --- a/source4/dsdb/common/util.c +++ b/source4/dsdb/common/util.c @@ -6063,8 +6063,8 @@ bool dsdb_objects_have_same_nc(struct ldb_context *ldb, ret = LDB_ERR_OTHER; } if (ret != LDB_SUCCESS) { - DBG_ERR("Failed to find base DN for source %s\n", - ldb_dn_get_linearized(source_dn)); + DBG_ERR("Failed to find base DN for source %s: %s\n", + ldb_dn_get_linearized(source_dn), ldb_errstring(ldb)); talloc_free(tmp_ctx); return true; } @@ -6075,8 +6075,8 @@ bool dsdb_objects_have_same_nc(struct ldb_context *ldb, ret = LDB_ERR_OTHER; } if (ret != LDB_SUCCESS) { - DBG_ERR("Failed to find base DN for target %s\n", - ldb_dn_get_linearized(target_dn)); + DBG_ERR("Failed to find base DN for target %s: %s\n", + ldb_dn_get_linearized(target_dn), ldb_errstring(ldb)); talloc_free(tmp_ctx); return true; } |