1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

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>
This commit is contained in:
Gary Lockyer 2019-07-04 14:22:29 +12:00 committed by Andrew Bartlett
parent 32f2e390e4
commit 7d17dbd10e

View File

@ -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;
}