summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
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/dsdb/schema
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/dsdb/schema')
-rw-r--r--source4/dsdb/schema/schema_syntax.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_syntax.c b/source4/dsdb/schema/schema_syntax.c
index 0a5438ba97..6d63023b1a 100644
--- a/source4/dsdb/schema/schema_syntax.c
+++ b/source4/dsdb/schema/schema_syntax.c
@@ -1054,10 +1054,12 @@ static WERROR _dsdb_syntax_OID_attr_drsuapi_to_ldb(const struct dsdb_syntax_ctx
const char *str;
if (in->value_ctr.values[i].blob == NULL) {
+ DEBUG(0, ("Attribute has no value\n"));
return WERR_FOOBAR;
}
if (in->value_ctr.values[i].blob->length != 4) {
+ DEBUG(0, ("Attribute has a value with 0 length\n"));
return WERR_FOOBAR;
}
@@ -1264,6 +1266,7 @@ static WERROR _dsdb_syntax_OID_attr_ldb_to_drsuapi(const struct dsdb_syntax_ctx
obj_attr = dsdb_attribute_by_lDAPDisplayName(ctx->schema, (const char *)in->values[i].data);
if (!obj_attr) {
+ DEBUG(0, ("Unable to find attribute %s in the schema\n", (const char *)in->values[i].data));
return WERR_FOOBAR;
}
SIVAL(blobs[i].data, 0, obj_attr->attributeID_id);