Removed ldb_modify_ctrl from ldb, implemented as a static in ldap_backend.
[samba.git] / source4 / lib / ldb / common / ldb.c
index 94a5fb2153d7a3b73833411fd31ffdba5db8a16e..a3472a60e57213db43d4f9648c36c8653d8a6479 100644 (file)
@@ -1388,11 +1388,10 @@ int ldb_add(struct ldb_context *ldb,
 }
 
 /*
-  same as ldb_modify, but accepts controls
+  modify the specified attributes of a record
 */
-int ldb_modify_ctrl(struct ldb_context *ldb,
-                   const struct ldb_message *message,
-                   struct ldb_control **controls)
+int ldb_modify(struct ldb_context *ldb,
+              const struct ldb_message *message)
 {
        struct ldb_request *req;
        int ret;
@@ -1404,7 +1403,7 @@ int ldb_modify_ctrl(struct ldb_context *ldb,
 
        ret = ldb_build_mod_req(&req, ldb, ldb,
                                        message,
-                                       controls,
+                                       NULL,
                                        NULL,
                                        ldb_op_default_callback,
                                        NULL);
@@ -1417,14 +1416,6 @@ int ldb_modify_ctrl(struct ldb_context *ldb,
        talloc_free(req);
        return ret;
 }
-/*
-  modify the specified attributes of a record
-*/
-int ldb_modify(struct ldb_context *ldb,
-              const struct ldb_message *message)
-{
-       return ldb_modify_ctrl(ldb, message, NULL);
-}
 
 
 /*