summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-01-13 11:24:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:32 -0500
commit82b4069171fdc5a6b8058161546786aec52913ca (patch)
tree95a9727bd0ba737227dd9758bf80283aabb9336b /source4/dsdb/samdb/ldb_modules
parent2cf643929ce9024bcdad7ef52bcfce6e97677996 (diff)
downloadsamba-82b4069171fdc5a6b8058161546786aec52913ca.tar.gz
samba-82b4069171fdc5a6b8058161546786aec52913ca.tar.bz2
samba-82b4069171fdc5a6b8058161546786aec52913ca.zip
r20728: the DSDB_CONTROL_REPLICATED_OBJECT_OID control isn't used anymore
because we now use DSDB_EXTENDED_REPLICATED_OBJECTS_OID extended operation metze (This used to be commit 4380cc9ed6ac2e6c133b5a36f922b341474a8e7e)
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c50
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c5
2 files changed, 0 insertions, 55 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 4b12c68175..53fd46f116 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -168,23 +168,6 @@ static int add_uint64_element(struct ldb_message *msg, const char *attr, uint64_
return 0;
}
-static int replmd_add_replicated(struct ldb_module *module, struct ldb_request *req, struct ldb_control *ctrl)
-{
- struct ldb_control **saved_ctrls;
- int ret;
-
- ldb_debug(module->ldb, LDB_DEBUG_TRACE, "replmd_add_replicated\n");
-
- if (!save_controls(ctrl, req, &saved_ctrls)) {
- return LDB_ERR_OPERATIONS_ERROR;
- }
-
- ret = ldb_next_request(module, req);
- req->controls = saved_ctrls;
-
- return ret;
-}
-
static int replmd_add_originating(struct ldb_module *module, struct ldb_request *req)
{
struct ldb_request *down_req;
@@ -265,39 +248,14 @@ static int replmd_add_originating(struct ldb_module *module, struct ldb_request
static int replmd_add(struct ldb_module *module, struct ldb_request *req)
{
- struct ldb_control *ctrl;
-
/* do not manipulate our control entries */
if (ldb_dn_is_special(req->op.add.message->dn)) {
return ldb_next_request(module, req);
}
- ctrl = get_control_from_list(req->controls, DSDB_CONTROL_REPLICATED_OBJECT_OID);
- if (ctrl) {
- /* handle replicated objects different */
- return replmd_add_replicated(module, req, ctrl);
- }
-
return replmd_add_originating(module, req);
}
-static int replmd_modify_replicated(struct ldb_module *module, struct ldb_request *req, struct ldb_control *ctrl)
-{
- struct ldb_control **saved_ctrls;
- int ret;
-
- ldb_debug(module->ldb, LDB_DEBUG_TRACE, "replmd_modify_replicated\n");
-
- if (!save_controls(ctrl, req, &saved_ctrls)) {
- return LDB_ERR_OPERATIONS_ERROR;
- }
-
- ret = ldb_next_request(module, req);
- req->controls = saved_ctrls;
-
- return ret;
-}
-
static int replmd_modify_originating(struct ldb_module *module, struct ldb_request *req)
{
struct ldb_request *down_req;
@@ -352,19 +310,11 @@ static int replmd_modify_originating(struct ldb_module *module, struct ldb_reque
static int replmd_modify(struct ldb_module *module, struct ldb_request *req)
{
- struct ldb_control *ctrl;
-
/* do not manipulate our control entries */
if (ldb_dn_is_special(req->op.mod.message->dn)) {
return ldb_next_request(module, req);
}
- ctrl = get_control_from_list(req->controls, DSDB_CONTROL_REPLICATED_OBJECT_OID);
- if (ctrl) {
- /* handle replicated objects different */
- return replmd_modify_replicated(module, req, ctrl);
- }
-
return replmd_modify_originating(module, req);
}
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 07d77ee3fc..1c1ff0ea6e 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -680,11 +680,6 @@ static int samldb_add(struct ldb_module *module, struct ldb_request *req)
return ldb_next_request(module, req);
}
- if (get_control_from_list(req->controls, DSDB_CONTROL_REPLICATED_OBJECT_OID)) {
- /* if it's a replicated object we have nothing to do */
- return ldb_next_request(module, req);
- }
-
/* is user or computer? */
if ((samdb_find_attribute(module->ldb, msg, "objectclass", "user") != NULL) ||
(samdb_find_attribute(module->ldb, msg, "objectclass", "computer") != NULL)) {