mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r20735: print out a headline and the oMObjectClass
metze
(This used to be commit 0ccd35bb3d
)
This commit is contained in:
parent
c186fb9463
commit
fbec233ec7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user