From aeedd29d390a1bb8ad1b446bf9b39cffd42e5612 Mon Sep 17 00:00:00 2001 From: Nadezhda Ivanova Date: Mon, 27 Sep 2010 10:01:09 -0700 Subject: s4-ldb: Added ldb_request_replace_control It is the same as ldb_request_add_control, except it will replace an existing control. Autobuild-User: Andrew Tridgell Autobuild-Date: Mon Sep 27 19:00:38 UTC 2010 on sn-devel-104 --- source4/lib/ldb/include/ldb.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source4/lib/ldb/include') diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index 4bc793b9cc..d29aed491a 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -1217,6 +1217,18 @@ int ldb_build_rename_req(struct ldb_request **ret_req, */ int ldb_request_add_control(struct ldb_request *req, const char *oid, bool critical, void *data); +/** + replace a ldb_control in a ldb_request + + \param req the request struct where to add the control + \param oid the object identifier of the control as string + \param critical whether the control should be critical or not + \param data a talloc pointer to the control specific data + + \return result code (LDB_SUCCESS on success, or a failure code) +*/ +int ldb_request_replace_control(struct ldb_request *req, const char *oid, bool critical, void *data); + /** check if a control with the specified "oid" exist and return it \param req the request struct where to add the control -- cgit