From 3710a7ae991696dca71d0d8b173d9bd533f072cd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 23 Dec 2006 10:39:26 +0000 Subject: r20331: 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 (This used to be commit bfb7756bb0f1bbd9a7a17c9689cf2ea351247116) --- source4/dsdb/schema/schema.h | 5 ++++- source4/dsdb/schema/schema_init.c | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/schema/schema.h b/source4/dsdb/schema/schema.h index c1f9081b2d..34cfcdb401 100644 --- a/source4/dsdb/schema/schema.h +++ b/source4/dsdb/schema/schema.h @@ -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; diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index a721718a06..59ab62eb92 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -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)) { -- cgit