svn commit: samba r20331 - in
branches/SAMBA_4_0/source/dsdb/schema: .
metze at samba.org
metze at samba.org
Sat Dec 23 10:39:26 GMT 2006
Author: metze
Date: 2006-12-23 10:39:26 +0000 (Sat, 23 Dec 2006)
New Revision: 20331
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20331
Log:
the last entry in the oid mapping array which starts with 0xFF
is the content of the schemaInfo attribute of the schema head object
metze
Modified:
branches/SAMBA_4_0/source/dsdb/schema/schema.h
branches/SAMBA_4_0/source/dsdb/schema/schema_init.c
Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/schema/schema.h
===================================================================
--- branches/SAMBA_4_0/source/dsdb/schema/schema.h 2006-12-23 02:26:18 UTC (rev 20330)
+++ branches/SAMBA_4_0/source/dsdb/schema/schema.h 2006-12-23 10:39:26 UTC (rev 20331)
@@ -115,8 +115,11 @@
* the last element of the prefix mapping table isn't a oid,
* it starts with 0xFF and has 21 bytes and is maybe a schema
* version number
+ *
+ * this is the content of the schemaInfo attribute of the
+ * Schema-Partition head object.
*/
- const char *unknown_magic;
+ const char *schema_info;
struct dsdb_attribute *attributes;
struct dsdb_class *classes;
Modified: branches/SAMBA_4_0/source/dsdb/schema/schema_init.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/schema/schema_init.c 2006-12-23 02:26:18 UTC (rev 20330)
+++ branches/SAMBA_4_0/source/dsdb/schema/schema_init.c 2006-12-23 10:39:26 UTC (rev 20331)
@@ -46,9 +46,9 @@
if (i != (ctr->num_mappings - 1)) {
return WERR_INVALID_PARAM;
}
-
- schema->unknown_magic = talloc_strdup(schema, ctr->mappings[i].oid.oid);
- W_ERROR_HAVE_NO_MEMORY(schema->unknown_magic);
+
+ schema->schema_info = talloc_strdup(schema, ctr->mappings[i].oid.oid);
+ W_ERROR_HAVE_NO_MEMORY(schema->schema_info);
} else {
/* the last array member should contain the magic value not a oid */
if (i == (ctr->num_mappings - 1)) {
More information about the samba-cvs
mailing list