r23699: when we create the global schema, remember to set the ldb opaque so we
authorAndrew Tridgell <tridge@samba.org>
Wed, 4 Jul 2007 05:15:06 +0000 (05:15 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:59:04 +0000 (14:59 -0500)
can find it again

source/dsdb/schema/schema_init.c

index bf82b0b1891854213618b83b384b4719d3aef4ee..a9ddbe69be7b3c911a0d5d1627c65b6d9a2d8f00 100644 (file)
@@ -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)