diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-12-23 10:39:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:29:42 -0500 |
commit | 3710a7ae991696dca71d0d8b173d9bd533f072cd (patch) | |
tree | 5b8acbdac76e88ae08450830d1922afddd2263a1 /source4 | |
parent | 37457a0f0796b4d945f2feb1297c684b99271594 (diff) | |
download | samba-3710a7ae991696dca71d0d8b173d9bd533f072cd.tar.gz samba-3710a7ae991696dca71d0d8b173d9bd533f072cd.tar.bz2 samba-3710a7ae991696dca71d0d8b173d9bd533f072cd.zip |
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)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/schema/schema.h | 5 | ||||
-rw-r--r-- | source4/dsdb/schema/schema_init.c | 6 |
2 files changed, 7 insertions, 4 deletions
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)) { |