summaryrefslogtreecommitdiff
path: root/source4/torture/ldap/schema.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-13 15:40:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:34 -0500
commitfbec233ec7db1ff71a04f5994d9f46646bb36726 (patch)
tree094a8d8986f0c14276d2c6229f02c671dd7cc118 /source4/torture/ldap/schema.c
parentc186fb94637f2cd502327c38d95c6d7a2b2dbd11 (diff)
downloadsamba-fbec233ec7db1ff71a04f5994d9f46646bb36726.tar.gz
samba-fbec233ec7db1ff71a04f5994d9f46646bb36726.tar.bz2
samba-fbec233ec7db1ff71a04f5994d9f46646bb36726.zip
r20735: print out a headline and the oMObjectClass
metze (This used to be commit 0ccd35bb3ddd8281953e589a6247423c38fc64b1)
Diffstat (limited to 'source4/torture/ldap/schema.c')
-rw-r--r--source4/torture/ldap/schema.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/source4/torture/ldap/schema.c b/source4/torture/ldap/schema.c
index 4186301c3b..e80b5b0233 100644
--- a/source4/torture/ldap/schema.c
+++ b/source4/torture/ldap/schema.c
@@ -339,12 +339,23 @@ static BOOL test_dump_sorted_syntax(struct ldb_context *ldb, struct test_rootDSE
"2.5.5.17"
};
+ d_printf("Dumping attribute syntaxes\n");
+
for (i=0; i < ARRAY_SIZE(syntaxes); i++) {
for (a=schema->attributes; a; a = a->next) {
+ char *om_hex;
+
if (strcmp(syntaxes[i], a->attributeSyntax_oid) != 0) continue;
- d_printf("attr[%4u]: %s %u '%s'\n", a_i++,
+
+ om_hex = data_blob_hex_string(ldb, &a->oMObjectClass);
+ if (!om_hex) {
+ return False;
+ }
+
+ d_printf("attr[%4u]: %s %u '%s' '%s'\n", a_i++,
a->attributeSyntax_oid, a->oMSyntax,
- a->lDAPDisplayName);
+ om_hex, a->lDAPDisplayName);
+ talloc_free(om_hex);
}
}