From: Andrew Bartlett Date: Tue, 2 Aug 2016 02:28:12 +0000 (+1200) Subject: s4:dsdb/repl_meta_data: Add more info on which DN we failed to find an attid on X-Git-Tag: tevent-0.9.30~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=108697402c9e39511f9ea1b1e21cae9322586f6b;p=thirdparty%2Fsamba.git s4:dsdb/repl_meta_data: Add more info on which DN we failed to find an attid on BUG: https://bugzilla.samba.org/show_bug.cgi?id=12128 Signed-off-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 4989a4b449e..f3573f6c9c3 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -6096,7 +6096,11 @@ linked_attributes[0]: /* find the attribute being modified */ attr = dsdb_attribute_by_attributeID_id(schema, la->attid); if (attr == NULL) { - DEBUG(0, (__location__ ": Unable to find attributeID 0x%x\n", la->attid)); + struct GUID_txt_buf guid_str; + ldb_asprintf_errstring(ldb, "Unable to find attributeID 0x%x for link on ", + la->attid, + GUID_buf_string(&la->identifier->guid, + &guid_str)); talloc_free(tmp_ctx); return LDB_ERR_OPERATIONS_ERROR; }