From f58e49ade829067064602cd8d143c7223f75057e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 17 Jan 2007 16:11:46 +0000 Subject: r20853: attach the DSDB_CONTROL_CURRENT_PARTITION_OID control when requests are passed to a specific partition metze (This used to be commit 06a46b1db46251989676fb04548f038930c83eb5) --- source4/dsdb/samdb/ldb_modules/partition.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 5ac954d65b..9a0dd9ca0a 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -272,7 +272,8 @@ static int partition_send_all(struct ldb_module *module, * requests must be replicated to all backends */ static int partition_replicate(struct ldb_module *module, struct ldb_request *req, struct ldb_dn *dn) { - int i; + unsigned i; + int ret; struct dsdb_control_current_partition *partition; struct ldb_module *backend; struct partition_private_data *data = talloc_get_type(module->private_data, @@ -313,9 +314,13 @@ static int partition_replicate(struct ldb_module *module, struct ldb_request *re return LDB_ERR_OPERATIONS_ERROR; } + ret = ldb_request_add_control(req, DSDB_CONTROL_CURRENT_PARTITION_OID, false, partition); + if (ret != LDB_SUCCESS) { + return ret; + } + /* issue request */ return ldb_next_request(backend, req); - } /* search */ -- cgit