]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-rpc_server/drsuapi: Improve debug message for drs_ObjectIdentifier_to_dn_and_nc_ro...
authorAndrew Bartlett <abartlet@samba.org>
Tue, 27 Jun 2023 05:18:39 +0000 (17:18 +1200)
committerJule Anger <janger@samba.org>
Mon, 21 Aug 2023 07:40:16 +0000 (07:40 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15401

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit a12bcce89d26ae05bbaeed560cf8fcc7b5bcfdab)

source4/rpc_server/drsuapi/getncchanges.c

index d730a1d18f5554a3570a8a3b2ea27b8a4b69bab0..977a0b750690219c0bfd7f998ef223e09b202ed3 100644 (file)
@@ -3022,6 +3022,9 @@ allowed:
                                                             &ncRoot_dn,
                                                             NULL);
                if (ret != LDB_SUCCESS) {
+                       DBG_ERR("Bad DN '%s' as Naming Context or EXOP DN for GetNCChanges: %s\n",
+                               drs_ObjectIdentifier_to_debug_string(mem_ctx, ncRoot),
+                               ldb_strerror(ret));
                        return WERR_DS_DRA_BAD_DN;
                }