From 0196318a1d027f04ed27d7a05dbefa9ded863b24 Mon Sep 17 00:00:00 2001 From: Tim Beale Date: Thu, 24 May 2018 15:27:45 +1200 Subject: [PATCH] dsdb: Add log when ignoring a replicated object outside of partition This is probably a note-worthy event for debugging purposes. (Found while developing the domain rename functionality) Signed-off-by: Tim Beale Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam Pair-Programmed-With: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed May 30 07:03:51 CEST 2018 on sn-devel-144 --- source4/dsdb/repl/replicated_objects.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source4/dsdb/repl/replicated_objects.c b/source4/dsdb/repl/replicated_objects.c index 24bf8f4c236..fd7491d477f 100644 --- a/source4/dsdb/repl/replicated_objects.c +++ b/source4/dsdb/repl/replicated_objects.c @@ -727,6 +727,12 @@ WERROR dsdb_replicated_objects_convert(struct ldb_context *ldb, * based on the cross-ref object. */ if (W_ERROR_EQUAL(status, WERR_DS_ADD_REPLICA_INHIBITED)) { + struct GUID_txt_buf guid_str; + DBG_ERR("Ignoring object outside partition %s %s: %s\n", + GUID_buf_string(&cur->object.identifier->guid, + &guid_str), + cur->object.identifier->dn, + win_errstr(status)); continue; } -- 2.34.1