r20331: the last entry in the oid mapping array which starts with 0xFF
authorStefan Metzmacher <metze@samba.org>
Sat, 23 Dec 2006 10:39:26 +0000 (10:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:42 +0000 (14:29 -0500)
is the content of the schemaInfo attribute of the schema head object

metze
(This used to be commit bfb7756bb0f1bbd9a7a17c9689cf2ea351247116)

source4/dsdb/schema/schema.h
source4/dsdb/schema/schema_init.c

index c1f9081b2d6126bd7bd6ddbdcfeb691f722da926..34cfcdb401b958902d65bd97b4e24085220ef8d5 100644 (file)
@@ -115,8 +115,11 @@ struct dsdb_schema {
         * 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;
index a721718a067e81e97091549f6aab50fe876a7293..59ab62eb92da161ffa2f063ba28083c2b85c6974 100644 (file)
@@ -46,9 +46,9 @@ WERROR dsdb_load_oid_mappings(struct dsdb_schema *schema, const struct drsuapi_D
                        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)) {