From a12bcce89d26ae05bbaeed560cf8fcc7b5bcfdab Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 27 Jun 2023 17:18:39 +1200 Subject: [PATCH] s4-rpc_server/drsuapi: Improve debug message for drs_ObjectIdentifier_to_dn_and_nc_root() failure BUG: https://bugzilla.samba.org/show_bug.cgi?id=15401 Signed-off-by: Andrew Bartlett Reviewed-by: Stefan Metzmacher --- source4/rpc_server/drsuapi/getncchanges.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source4/rpc_server/drsuapi/getncchanges.c b/source4/rpc_server/drsuapi/getncchanges.c index 4f2e60b55ca..4f59167ced1 100644 --- a/source4/rpc_server/drsuapi/getncchanges.c +++ b/source4/rpc_server/drsuapi/getncchanges.c @@ -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; }