dbchecker: verify and fix broken dn values
commit7746ad2f360d6580906333ea4060ef0ab731e889
authorStefan Metzmacher <metze@samba.org>
Thu, 13 Mar 2014 22:12:39 +0000 (13 23:12 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:15 +0000 (15 12:46 +0200)
tree2f3ceeefef09941ed590d9e862edf0c5cec85d51
parent8546c70984453829273d51e7447ce06101be15bf
dbchecker: verify and fix broken dn values

With older Samba versions (4.0.x) the following could happen:

- On account was created on DC1
- It was replicated to DC2
- The connection between the dcs is offline
- The account gets modified on DC2
- The account gets deleted on DC1
- The connection becomes online again
- DC1 replicates the modification from DC2,
  this resets the dn to the original value.
  'name' and 'cn' are correct (with '\nDEL${GUID}'),
  but 'dn' is wrong.
- DC2 replicates the deletion from DC1.
  this doesn't include a changed dn as DC1
  had a bug.
  'name' is correct (with '\nDEL${GUID}'),
  but 'cn' and 'dn' are wrong.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=10536
Change-Id: Ia70a6c12e0ff0d4c2c8100cb1d8f3c6422b65591
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 709ed040ec161e99b3c1f7076eac4a631149f64a)
python/samba/dbchecker.py