From 3f3576d64275dbf4964458dab39252ae4da9ba06 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 11 Jan 2013 20:05:39 -0800 Subject: drsuapi: Debug more clearly why NC is bad in updateRefs Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Fri May 17 04:17:14 CEST 2013 on sn-devel-104 --- source4/rpc_server/drsuapi/updaterefs.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4') diff --git a/source4/rpc_server/drsuapi/updaterefs.c b/source4/rpc_server/drsuapi/updaterefs.c index b7a0b44277..14bd3f64c2 100644 --- a/source4/rpc_server/drsuapi/updaterefs.c +++ b/source4/rpc_server/drsuapi/updaterefs.c @@ -172,9 +172,11 @@ WERROR drsuapi_UpdateRefs(struct drsuapi_bind_state *b_state, TALLOC_CTX *mem_ct W_ERROR_HAVE_NO_MEMORY(dn); ret = dsdb_find_nc_root(sam_ctx, dn, dn, &nc_root); if (ret != LDB_SUCCESS) { + DEBUG(2, ("Didn't find a nc for %s\n", ldb_dn_get_linearized(dn))); return WERR_DS_DRA_BAD_NC; } if (ldb_dn_compare(dn, nc_root) != 0) { + DEBUG(2, ("dn %s is not equal to %s\n", ldb_dn_get_linearized(dn), ldb_dn_get_linearized(nc_root))); return WERR_DS_DRA_BAD_NC; } -- cgit