samba-tool/drs: do partial replication when --local is given by default
authorBob Campbell <bobcampbell@catalyst.net.nz>
Thu, 26 Jan 2017 21:40:59 +0000 (10:40 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Feb 2017 20:28:25 +0000 (21:28 +0100)
commit47db694f710b75cc7a565358499ca34c4e83676e
tree6083865bd094e01e872575eaf5e3ff2d8f5a9044
parente89f0275e33b6dee3fd80ce5e5c7e7a9508fd80d
samba-tool/drs: do partial replication when --local is given by default

The samba-tool drs replicate --local command would previously always do
a full replication. This changes it to only replicate changes it doesn't
have according to appropriate highwatermark if the appropriate repsFrom
attribute exists in the local database, or an uptodateness_vector if one
exists.

Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Pair-programmed-with: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/drs.py
python/samba/tests/blackbox/samba_tool_drs.py