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)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 13 Aug 2023 21:59:29 +0000 (21:59 +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>
source4/rpc_server/drsuapi/getncchanges.c

index 4f2e60b55caad6b36c6940960e5b6dc3cf805030..4f59167ced153782be1c6f7370892714282b81c6 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;
                }