1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-07 01:58:28 +03:00

dsdb:repl_meta_data: allow CONTROL_DBCHECK_FIX_LINK_DN_NAME to by pass rename

We need a way to rename an object without updating the replication meta
data.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13816

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 3e8a435d27da899d0e3dab7cbc0a1c738067eba3)
This commit is contained in:
Stefan Metzmacher 2019-03-11 22:38:38 +01:00 committed by Karolin Seeger
parent f91050ee54
commit 9daeafbfec

View File

@ -3697,6 +3697,7 @@ static int replmd_rename_callback(struct ldb_request *req, struct ldb_reply *are
static int replmd_rename(struct ldb_module *module, struct ldb_request *req)
{
struct ldb_context *ldb;
struct ldb_control *fix_dn_name_control = NULL;
struct replmd_replicated_request *ac;
int ret;
struct ldb_request *down_req;
@ -3706,6 +3707,12 @@ static int replmd_rename(struct ldb_module *module, struct ldb_request *req)
return ldb_next_request(module, req);
}
fix_dn_name_control = ldb_request_get_control(req,
DSDB_CONTROL_DBCHECK_FIX_LINK_DN_NAME);
if (fix_dn_name_control != NULL) {
return ldb_next_request(module, req);
}
ldb = ldb_module_get_ctx(module);
ldb_debug(ldb, LDB_DEBUG_TRACE, "replmd_rename\n");