replmd: Set GET_ANC if Windows sends a link with unknown source object
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 15 Jun 2017 21:49:16 +0000 (09:49 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 18 Aug 2017 04:07:12 +0000 (06:07 +0200)
commitf87332eb35638cc38f83c580d4623ab978088601
treebbdef8ad5c5634c7bc4aca8bb7eba21fc3341951
parentcc201c2c4f5d2dfd18f68143d001c5ba02c00b32
replmd: Set GET_ANC if Windows sends a link with unknown source object

Windows replication can send the linked attribute before it sends the
source object. The MS-DRSR spec says that in this case the client should
resend the GetNCChanges request with the GET_ANC flag set. In my testing
this resolves the problem - Windows will include the source object for the
linked attribute in the same replication chunk.

This problem doesn't happen with Samba-to-Samba replication, because the
source object for the linked attribute is guaranteed to have already been
sent.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12972
source4/dsdb/samdb/ldb_modules/repl_meta_data.c