summaryrefslogtreecommitdiff
path: root/source4/dsdb/schema
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-07-04 05:15:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:04 -0500
commitb4d9778a805e22676a951266c1e0cd18a81162d6 (patch)
treea7cdcedcd1564af874619e665c2025b7eed2eaef /source4/dsdb/schema
parentd1984d5cf3dd43b3bbc214dd8c091b5fc2a86a46 (diff)
downloadsamba-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/schema')
-rw-r--r--source4/dsdb/schema/schema_init.c4
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)