s4:dsdb/repl_meta_data: Add more info on which DN we failed to find an attid on
authorAndrew Bartlett <abartlet@samba.org>
Tue, 2 Aug 2016 02:28:12 +0000 (14:28 +1200)
committerJeremy Allison <jra@samba.org>
Wed, 10 Aug 2016 22:49:15 +0000 (00:49 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12128

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/samdb/ldb_modules/repl_meta_data.c

index 4989a4b449e601ae3c05d397ff4ed05f3c465f37..f3573f6c9c3a4f6b9933d2b1f9cd452a6e6e2ded 100644 (file)
@@ -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 <GUID=%s>",
+                                      la->attid,
+                                      GUID_buf_string(&la->identifier->guid,
+                                                      &guid_str));
                talloc_free(tmp_ctx);
                return LDB_ERR_OPERATIONS_ERROR;
        }