diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-03-22 15:41:51 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-03-22 20:24:41 +1100 |
commit | 639728a29873e4cf59dfa149a231eae353f3753a (patch) | |
tree | b415f8c3cbae1c1d3ce1ebc6c177780ff8b35c21 /source4/dsdb/schema/schema_init.c | |
parent | 775c5ec1c57b4acf61c1c750c4832f64defcb5b6 (diff) | |
download | samba-639728a29873e4cf59dfa149a231eae353f3753a.tar.gz samba-639728a29873e4cf59dfa149a231eae353f3753a.tar.bz2 samba-639728a29873e4cf59dfa149a231eae353f3753a.zip |
s4:schema Expand the schema structure
We now store the location of the schema in the schema, and provide
hooks for a future schema reloading mechanism.
Andrew Bartlett
Diffstat (limited to 'source4/dsdb/schema/schema_init.c')
-rw-r--r-- | source4/dsdb/schema/schema_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index 949c1ea069..c7fcdaecdc 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -725,6 +725,8 @@ int dsdb_schema_from_ldb_results(TALLOC_CTX *mem_ctx, struct ldb_context *ldb, return LDB_ERR_OPERATIONS_ERROR; } + schema->base_dn = talloc_steal(schema, schema_res->msgs[0]->dn); + prefix_val = ldb_msg_find_ldb_val(schema_res->msgs[0], "prefixMap"); if (!prefix_val) { *error_string = talloc_asprintf(mem_ctx, |