]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-rpc_server/drsuapi: Improve debugging of invalid DNs
authorAndrew Bartlett <abartlet@samba.org>
Tue, 27 Jun 2023 00:18:24 +0000 (12:18 +1200)
committerJule Anger <janger@samba.org>
Mon, 21 Aug 2023 07:40:16 +0000 (07:40 +0000)
This is still unreachable, so but improve the logging
to give more detail in this area anyway.

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 d0c1ce53add2fd3b3a4186581f4e214029cbcf1a)

source4/rpc_server/drsuapi/getncchanges.c

index 9eb75c8502a52ea609c2efa5e130c7f28b1c3611..d730a1d18f5554a3570a8a3b2ea27b8a4b69bab0 100644 (file)
@@ -2977,8 +2977,9 @@ allowed:
                         * This can't fail as we have done this above
                         * implicitly but not got the DN out
                         */
-                       DBG_ERR("Bad DN '%s'\n",
-                               drs_ObjectIdentifier_to_debug_string(mem_ctx, ncRoot));
+                       DBG_ERR("Bad DN '%s' as Naming Context for GetNCChanges: %s\n",
+                               drs_ObjectIdentifier_to_debug_string(mem_ctx, ncRoot),
+                               ldb_strerror(ret));
                        return WERR_DS_DRA_INVALID_PARAMETER;
                }
                if (ldb_dn_compare(new_dn, getnc_state->ncRoot_dn) != 0) {