diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-10-22 15:54:12 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-10-23 15:40:49 +1100 |
commit | bd9aa4d561df738331b65ad05abcbd7672cd0493 (patch) | |
tree | 8aeebeab091d51b60098b8d892c8afe3d51941ff /source4 | |
parent | 0fca2b078ceb314e429e24e3318b50451ccf423b (diff) | |
download | samba-bd9aa4d561df738331b65ad05abcbd7672cd0493.tar.gz samba-bd9aa4d561df738331b65ad05abcbd7672cd0493.tar.bz2 samba-bd9aa4d561df738331b65ad05abcbd7672cd0493.zip |
s4:dsdb Set partitions metadata as soon as it is set up.
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition_init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition_init.c b/source4/dsdb/samdb/ldb_modules/partition_init.c index f4163dab3d..2a1f34e9bc 100644 --- a/source4/dsdb/samdb/ldb_modules/partition_init.c +++ b/source4/dsdb/samdb/ldb_modules/partition_init.c @@ -742,6 +742,9 @@ int partition_init(struct ldb_module *module) return ret; } + module->private_data = talloc_steal(module, data); + talloc_free(mem_ctx); + ret = ldb_mod_register_control(module, LDB_CONTROL_DOMAIN_SCOPE_OID); if (ret != LDB_SUCCESS) { ldb_debug(ldb_module_get_ctx(module), LDB_DEBUG_ERROR, @@ -756,8 +759,5 @@ int partition_init(struct ldb_module *module) return LDB_ERR_OPERATIONS_ERROR; } - module->private_data = talloc_steal(module, data); - - talloc_free(mem_ctx); return ldb_next_init(module); } |