getncchanges.py: Add test for adding links during replication
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 13 Jun 2017 00:14:45 +0000 (12:14 +1200)
committerGarming Sam <garming@samba.org>
Mon, 18 Sep 2017 03:51:24 +0000 (05:51 +0200)
commit6ec9ef2bebe5f9d587963f29c279b938f098893e
tree30f9be632178c13ccea4c42ae68e389311b3e59a
parentaf82bdefcc3b7413c9eed81b4aa5937817b2a9ff
getncchanges.py: Add test for adding links during replication

We have identified a case where the Samba server can send linked
attributes but not the target object. In this case, the Samba DRS client
would hit the "Failed to re-resolve GUID" case in replmd and silently
discard the linked attribute.

However, Samba will resend the linked attribute in the next cycle
(because its USN is still higher than the committed HWM), so it should
recover OK. On older releases, this may have caused problems if the
first error resulting in a hanging link (which might mean the second
time it's processed it still fails to be added).

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
selftest/knownfail.d/getncchanges
source4/torture/drs/python/getncchanges.py