diff options
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules/repl_meta_data.c')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 50 |
1 files changed, 0 insertions, 50 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); } |