From: Andrew Bartlett Date: Mon, 21 Mar 2016 01:06:21 +0000 (+1300) Subject: dsdb: Give the objectGUID ahead of LDIF dump of replicated changes X-Git-Tag: tdb-1.3.10~971 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aa2d44462a1d61a0809ccd6eb5a3d30dfaa7a55;p=thirdparty%2Fsamba.git dsdb: Give the objectGUID ahead of LDIF dump of replicated changes This can help isolate which object this is when the object is involved in a rename. Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 0016b0a1227..f1d3958c91f 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -4074,8 +4074,12 @@ static int replmd_replicated_apply_add(struct replmd_replicated_request *ar) } if (DEBUGLVL(4)) { + struct GUID_txt_buf guid_txt; + char *s = ldb_ldif_message_string(ldb, ar, LDB_CHANGETYPE_ADD, msg); - DEBUG(4, ("DRS replication add message:\n%s\n", s)); + DEBUG(4, ("DRS replication add message of %s:\n%s\n", + GUID_buf_string(&ar->objs->objects[ar->index_current].object_guid, &guid_txt), + s)); talloc_free(s); } @@ -4880,8 +4884,12 @@ static int replmd_replicated_apply_merge(struct replmd_replicated_request *ar) } if (DEBUGLVL(4)) { + struct GUID_txt_buf guid_txt; + char *s = ldb_ldif_message_string(ldb, ar, LDB_CHANGETYPE_MODIFY, msg); - DEBUG(4, ("DRS replication modify message:\n%s\n", s)); + DEBUG(4, ("DRS replication modify message of %s:\n%s\n", + GUID_buf_string(&ar->objs->objects[ar->index_current].object_guid, &guid_txt), + s)); talloc_free(s); }