diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-12-16 08:59:05 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-12-17 12:29:27 +1100 |
commit | 596fe759e1fed835173146a74ac9986066acc48e (patch) | |
tree | dfd67129f0d768c57179d9fcd5a59d8ba656f8d4 /source4/lib/ldb/common/ldb_modules.c | |
parent | 18ef32f4ce6e1fe240aa042a81fb493eaae421af (diff) | |
download | samba-596fe759e1fed835173146a74ac9986066acc48e.tar.gz samba-596fe759e1fed835173146a74ac9986066acc48e.tar.bz2 samba-596fe759e1fed835173146a74ac9986066acc48e.zip |
s4:ldb: make it possible to return per entry controls
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/lib/ldb/common/ldb_modules.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index ab0f4c51cc..8db28d262c 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -587,10 +587,13 @@ struct ldb_handle *ldb_handle_new(TALLOC_CTX *mem_ctx, struct ldb_context *ldb) * req: the original request passed to your module * msg: reply message (must be a talloc pointer, and it will be stolen * on the ldb_reply that is sent to the callback) + * ctrls: controls to send in the reply (must be a talloc pointer, and it will be stolen + * on the ldb_reply that is sent to the callback) */ int ldb_module_send_entry(struct ldb_request *req, - struct ldb_message *msg) + struct ldb_message *msg, + struct ldb_control **ctrls) { struct ldb_reply *ares; @@ -602,6 +605,7 @@ int ldb_module_send_entry(struct ldb_request *req, } ares->type = LDB_REPLY_ENTRY; ares->message = talloc_steal(ares, msg); + ares->controls = talloc_steal(ares, ctrls); ares->error = LDB_SUCCESS; return req->callback(req, ares); |