From: Tim Beale Date: Thu, 24 May 2018 03:27:45 +0000 (+1200) Subject: dsdb: Add log when ignoring a replicated object outside of partition X-Git-Tag: tevent-0.9.37~480 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0196318a1d027f04ed27d7a05dbefa9ded863b24;p=thirdparty%2Fsamba.git 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 --- 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; }