From b4d9778a805e22676a951266c1e0cd18a81162d6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 4 Jul 2007 05:15:06 +0000 Subject: 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) --- source4/dsdb/schema/schema_init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit