summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
authorNadezhda Ivanova <nivanova@samba.org>2010-09-27 10:01:09 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-27 19:00:38 +0000
commitaeedd29d390a1bb8ad1b446bf9b39cffd42e5612 (patch)
treef0de78df1754f4f1a0ca09b88f8d9cc22686fb44 /source4/dsdb/samdb
parent2cf0525b2382d22b3497f49eb58b9fd8f0c837e1 (diff)
downloadsamba-aeedd29d390a1bb8ad1b446bf9b39cffd42e5612.tar.gz
samba-aeedd29d390a1bb8ad1b446bf9b39cffd42e5612.tar.bz2
samba-aeedd29d390a1bb8ad1b446bf9b39cffd42e5612.zip
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 <tridge@samba.org> Autobuild-Date: Mon Sep 27 19:00:38 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/extended_dn_in.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c
index c1afbea177..400c37faf2 100644
--- a/source4/dsdb/samdb/ldb_modules/extended_dn_in.c
+++ b/source4/dsdb/samdb/ldb_modules/extended_dn_in.c
@@ -370,7 +370,7 @@ static int extended_dn_in_fix(struct ldb_module *module, struct ldb_request *req
struct ldb_search_options_control *control;
control = talloc(down_req, struct ldb_search_options_control);
control->search_options = 2;
- ret = ldb_request_add_control(down_req,
+ ret = ldb_request_replace_control(down_req,
LDB_CONTROL_SEARCH_OPTIONS_OID,
true, control);
if (ret != LDB_SUCCESS) {