From da3a2c68b0a789685f051a21579cafa71651618d Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Wed, 2 Feb 2011 07:02:06 +0200 Subject: 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 Autobuild-Date: Wed Feb 2 09:03:22 CET 2011 on sn-devel-104 --- source4/scripting/python/samba/netcmd/drs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/scripting') 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: -- cgit