From fbec233ec7db1ff71a04f5994d9f46646bb36726 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 13 Jan 2007 15:40:33 +0000 Subject: r20735: print out a headline and the oMObjectClass metze (This used to be commit 0ccd35bb3ddd8281953e589a6247423c38fc64b1) --- source4/torture/ldap/schema.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'source4/torture/ldap') 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); } } -- cgit