summaryrefslogtreecommitdiff
path: root/source4/libnet
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-04-28 22:12:40 -0700
committerMatthieu Patou <mat@samba.org>2012-04-29 09:08:15 +0200
commitb019248fe85025f9df0cc20484f7b5f65838dc09 (patch)
tree6865859d6505c62aa0e457be97369dad1989f039 /source4/libnet
parent361673501039e3252db39696af116b2e03ff6427 (diff)
downloadsamba-b019248fe85025f9df0cc20484f7b5f65838dc09.tar.gz
samba-b019248fe85025f9df0cc20484f7b5f65838dc09.tar.bz2
samba-b019248fe85025f9df0cc20484f7b5f65838dc09.zip
Add some debug for FOOBAR return case as they are hard to diagnose
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Apr 29 09:08:15 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_vampire.c7
1 files changed, 5 insertions, 2 deletions
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;
}