diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-07-04 05:15:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:59:04 -0500 |
commit | b4d9778a805e22676a951266c1e0cd18a81162d6 (patch) | |
tree | a7cdcedcd1564af874619e665c2025b7eed2eaef /source4/dsdb | |
parent | d1984d5cf3dd43b3bbc214dd8c091b5fc2a86a46 (diff) | |
download | samba-b4d9778a805e22676a951266c1e0cd18a81162d6.tar.gz samba-b4d9778a805e22676a951266c1e0cd18a81162d6.tar.bz2 samba-b4d9778a805e22676a951266c1e0cd18a81162d6.zip |
r23699: when we create the global schema, remember to set the ldb opaque so we
can find it again
(This used to be commit 968e70b2aa478cfd49321e3386b505fd00a81527)
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/schema/schema_init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/dsdb/schema/schema_init.c b/source4/dsdb/schema/schema_init.c index bf82b0b189..a9ddbe69be 100644 --- a/source4/dsdb/schema/schema_init.c +++ b/source4/dsdb/schema/schema_init.c @@ -1016,7 +1016,7 @@ int dsdb_set_global_schema(struct ldb_context *ldb) { int ret; if (!global_schema) { - return LDB_SUCCESS; + return LDB_SUCCESS; } ret = ldb_set_opaque(ldb, "dsdb_schema", global_schema); if (ret != LDB_SUCCESS) { @@ -1063,6 +1063,8 @@ void dsdb_make_schema_global(struct ldb_context *ldb) talloc_steal(talloc_autofree_context(), schema); global_schema = schema; + + dsdb_set_global_schema(ldb); } WERROR dsdb_attach_schema_from_ldif_file(struct ldb_context *ldb, const char *pf, const char *df) |