[SCM] Samba Shared Repository - branch master updated

Kamen Mazdrashki kamenim at samba.org
Wed Feb 2 01:04:02 MST 2011


The branch, master has been updated
       via  da3a2c6 s4/samba-tool: Add --sync-forced flag to 'drs replicate' command
      from  f19c1e3 s4-dsdb Add tests to ensure we don't break the rootDSE function levels again

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit da3a2c68b0a789685f051a21579cafa71651618d
Author: Kamen Mazdrashki <kamenim at samba.org>
Date:   Wed Feb 2 07:02:06 2011 +0200

    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 at samba.org>
    Autobuild-Date: Wed Feb  2 09:03:22 CET 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source4/scripting/python/samba/netcmd/drs.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source4/scripting/python/samba/netcmd/drs.py b/source4/scripting/python/samba/netcmd/drs.py
index f0cde79..740bd20 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:


-- 
Samba Shared Repository


More information about the samba-cvs mailing list