summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-06-10 10:10:04 +1000
committerAndrew Tridgell <tridge@samba.org>2011-06-10 10:14:56 +1000
commit56d09d5904e036ae9cf483b7be202956aae998b3 (patch)
tree90f9410e714fb11708366871ccc4f3e72fc810d3 /source4
parent3e4c08096d913834143b23f4fbc662d92659a83f (diff)
downloadsamba-56d09d5904e036ae9cf483b7be202956aae998b3.tar.gz
samba-56d09d5904e036ae9cf483b7be202956aae998b3.tar.bz2
samba-56d09d5904e036ae9cf483b7be202956aae998b3.zip
s4-drs: ensure we add a RMD_ADDTIME when upgrading a linked attribute
if the link was a w2k style, and we are upgrading it, then set the RMD_ADDTIME to the current time
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/repl_meta_data.c3
1 files changed, 2 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 04311a4a98..9d2e5e2ac3 100644
--- a/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
+++ b/source4/dsdb/samdb/ldb_modules/repl_meta_data.c
@@ -1643,7 +1643,8 @@ static int replmd_update_la_val(TALLOC_CTX *mem_ctx, struct ldb_val *v, struct d
if (old_addtime == NULL) {
old_addtime = &tval;
}
- if (dsdb_dn != old_dsdb_dn) {
+ if (dsdb_dn != old_dsdb_dn ||
+ ldb_dn_get_extended_component(dn, "RMD_ADDTIME") == NULL) {
ret = ldb_dn_set_extended_component(dn, "RMD_ADDTIME", old_addtime);
if (ret != LDB_SUCCESS) return ret;
}