diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2019-07-04 14:22:29 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2019-07-04 10:02:23 +0000 |
commit | 7d17dbd10eb203bd48183fd3527165f244bbf4c4 (patch) | |
tree | 4da2da88de5aba420b6fcf41b2a0be2cad392494 /source4 | |
parent | 32f2e390e473f01c693d3140d30e20850e87b4c0 (diff) | |
download | samba-7d17dbd10eb203bd48183fd3527165f244bbf4c4.tar.gz |
s4 samdb: pass ldb options to ldb_module_connect_backend
Pass the ldb options into ldb_module_connect_backend, to ensure ldb
options such as "batch mode" and "transaction index cache size" get passed
through to the backend modules.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition_init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/partition_init.c b/source4/dsdb/samdb/ldb_modules/partition_init.c index 7d076932665..19033b4f48f 100644 --- a/source4/dsdb/samdb/ldb_modules/partition_init.c +++ b/source4/dsdb/samdb/ldb_modules/partition_init.c @@ -207,6 +207,7 @@ static int new_partition_from_dn(struct ldb_context *ldb, struct partition_priva struct ldb_module *backend_module; struct ldb_module *module_chain; const char **modules; + const char **options = NULL; int ret; (*partition) = talloc_zero(mem_ctx, struct dsdb_partition); @@ -257,7 +258,9 @@ static int new_partition_from_dn(struct ldb_context *ldb, struct partition_priva ctrl->version = DSDB_CONTROL_CURRENT_PARTITION_VERSION; ctrl->dn = talloc_steal(ctrl, dn); - ret = ldb_module_connect_backend(ldb, (*partition)->backend_url, NULL, &backend_module); + options = ldb_options_get(ldb); + ret = ldb_module_connect_backend( + ldb, (*partition)->backend_url, options, &backend_module); if (ret != LDB_SUCCESS) { return ret; } |