summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorNadezhda Ivanova <nadezhda.ivanova@postpath.com>2009-11-20 13:22:38 +0200
committerNadezhda Ivanova <nadezhda.ivanova@postpath.com>2009-11-20 13:22:38 +0200
commita760f169f4936d7e2677db9229181e2c5ac23bcd (patch)
tree545c9c43890aa7d1d8cf810eb1d70e85cfd695c5 /source4/lib/ldb/include
parent07e971f1c169387af806af05aa60b6d021feb898 (diff)
downloadsamba-a760f169f4936d7e2677db9229181e2c5ac23bcd.tar.gz
samba-a760f169f4936d7e2677db9229181e2c5ac23bcd.tar.bz2
samba-a760f169f4936d7e2677db9229181e2c5ac23bcd.zip
Some changes to allow processing of ldap controls on modify requests.
ldap_backend used to filter out ldap controls on modify. Also, modified python binding for ldap_modify to allow writing tests for such controls.
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 1d0b533a33..62cd2b8c64 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -1217,6 +1217,24 @@ int ldb_add(struct ldb_context *ldb,
ldb_init())
\param message the message containing the changes required.
+ \param controls ldap controls for the request
+
+ \return result code (LDB_SUCCESS if the record was modified as
+ requested, otherwise a failure code)
+*/
+int ldb_modify_ctrl(struct ldb_context *ldb,
+ const struct ldb_message *message,
+ struct ldb_control **controls);
+
+/**
+ Modify the specified attributes of a record
+
+ This function modifies a record that is in the database.
+
+ \param ldb the context associated with the database (from
+ ldb_init())
+ \param message the message containing the changes required.
+
\return result code (LDB_SUCCESS if the record was modified as
requested, otherwise a failure code)
*/