summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamenim@samba.org>2011-02-02 07:02:06 +0200
committerKamen Mazdrashki <kamenim@samba.org>2011-02-02 09:03:22 +0100
commitda3a2c68b0a789685f051a21579cafa71651618d (patch)
treefa3feb70de6afcfdc55036fec40790140570b1ec /source4
parentf19c1e37c7d56ad9037e98067ca041a18a479e78 (diff)
downloadsamba-da3a2c68b0a789685f051a21579cafa71651618d.tar.gz
samba-da3a2c68b0a789685f051a21579cafa71651618d.tar.bz2
samba-da3a2c68b0a789685f051a21579cafa71651618d.zip
s4/samba-tool: Add --sync-forced flag to 'drs replicate' command
We are going to need this to trigger replication when inbound replication is disabled for a given DC Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Feb 2 09:03:22 CET 2011 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/python/samba/netcmd/drs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/drs.py b/source4/scripting/python/samba/netcmd/drs.py
index f0cde791c5..740bd209b9 100644
--- a/source4/scripting/python/samba/netcmd/drs.py
+++ b/source4/scripting/python/samba/netcmd/drs.py
@@ -247,9 +247,10 @@ class cmd_drs_replicate(Command):
takes_options = [
Option("--add-ref", help="use ADD_REF to add to repsTo on source", action="store_true"),
+ Option("--sync-forced", help="use SYNC_FORCED to force inbound replication", action="store_true"),
]
- def run(self, DEST_DC, SOURCE_DC, NC, add_ref=False,
+ def run(self, DEST_DC, SOURCE_DC, NC, add_ref=False, sync_forced=False,
sambaopts=None,
credopts=None, versionopts=None, server=None):
@@ -288,6 +289,8 @@ class cmd_drs_replicate(Command):
req1.options |= drsuapi.DRSUAPI_DRS_WRIT_REP
if add_ref:
req1.options |= drsuapi.DRSUAPI_DRS_ADD_REF
+ if sync_forced:
+ req1.options |= drsuapi.DRSUAPI_DRS_SYNC_FORCED
req1.source_dsa_guid = misc.GUID(source_dsa_guid)
try: