summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2011-07-03 22:21:29 +0400
committerAndrew Tridgell <tridge@samba.org>2011-07-11 14:32:44 +1000
commit6ec46309c3b1b766a23cd0327bcf7ff9f661fdf2 (patch)
tree361de18a9368a9c6b862462c302c474c3c234383 /source4/dsdb
parent3764b93b7c9df4bcc03e4fbf2e1acb5f7a3d268d (diff)
downloadsamba-6ec46309c3b1b766a23cd0327bcf7ff9f661fdf2.tar.gz
samba-6ec46309c3b1b766a23cd0327bcf7ff9f661fdf2.tar.bz2
samba-6ec46309c3b1b766a23cd0327bcf7ff9f661fdf2.zip
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 <tridge@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
index 2363260963..f201ce3b89 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) {