svn commit: samba r20735 - in branches/SAMBA_4_0/source/torture/ldap: .

metze at samba.org metze at samba.org
Sat Jan 13 15:40:38 GMT 2007


Author: metze
Date: 2007-01-13 15:40:33 +0000 (Sat, 13 Jan 2007)
New Revision: 20735

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20735

Log:
print out a headline and the oMObjectClass

metze
Modified:
   branches/SAMBA_4_0/source/torture/ldap/schema.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/ldap/schema.c
===================================================================
--- branches/SAMBA_4_0/source/torture/ldap/schema.c	2007-01-13 15:39:49 UTC (rev 20734)
+++ branches/SAMBA_4_0/source/torture/ldap/schema.c	2007-01-13 15:40:33 UTC (rev 20735)
@@ -339,12 +339,23 @@
 		"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);
 		}
 	}
 



More information about the samba-cvs mailing list