From 6ec46309c3b1b766a23cd0327bcf7ff9f661fdf2 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Sun, 3 Jul 2011 22:21:29 +0400 Subject: [PATCH] s4-dsdb: when replacing linked attribute take always the new dn as the old dn might be broken The usual use case is that you have a not complete linked attribute (ie. without the SID) if we keep using the old dn, then the SID will never be added. Signed-off-by: Andrew Tridgell --- source4/dsdb/samdb/ldb_modules/repl_meta_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c index 23632609636..f201ce3b894 100644 --- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c +++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c @@ -2024,7 +2024,7 @@ static int replmd_modify_la_replace(struct ldb_module *module, (old_p = parsed_dn_find(old_dns, old_num_values, p->guid, NULL)) != NULL) { /* update in place */ - ret = replmd_update_la_val(old_el->values, old_p->v, old_p->dsdb_dn, + ret = replmd_update_la_val(old_el->values, old_p->v, p->dsdb_dn, old_p->dsdb_dn, invocation_id, seq_num, seq_num, now, 0, false); if (ret != LDB_SUCCESS) { -- 2.11.4.GIT