From b019248fe85025f9df0cc20484f7b5f65838dc09 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sat, 28 Apr 2012 22:12:40 -0700 Subject: Add some debug for FOOBAR return case as they are hard to diagnose Autobuild-User: Matthieu Patou Autobuild-Date: Sun Apr 29 09:08:15 CEST 2012 on sn-devel-104 --- source4/libnet/libnet_vampire.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'source4/libnet') diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index fad80eca80..f06e4a4cb2 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -788,16 +788,19 @@ NTSTATUS libnet_vampire_cb_store_chunk(void *private_data, const struct dsdb_attribute *sa; if (!linked_attributes[i].identifier) { - return NT_STATUS_FOOBAR; + DEBUG(0, ("No linked attribute identifier\n")); + return NT_STATUS_FOOBAR; } if (!linked_attributes[i].value.blob) { - return NT_STATUS_FOOBAR; + DEBUG(0, ("No linked attribute value\n")); + return NT_STATUS_FOOBAR; } sa = dsdb_attribute_by_attributeID_id(s->schema, linked_attributes[i].attid); if (!sa) { + DEBUG(0, ("Unable to find attribute via attribute id %d\n", linked_attributes[i].attid)); return NT_STATUS_FOOBAR; } -- cgit