summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-05 14:08:49 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-05 23:42:08 +1100
commit278778c927b71847e87ce9b43e2a70665906befe (patch)
tree5825799545b12b190ab7c8d320ea0974c1e5817d /source4/scripting/python/samba/netcmd
parentcbded38ed5f319af4e9836039bfa16c6123e2ba7 (diff)
downloadsamba-278778c927b71847e87ce9b43e2a70665906befe.tar.gz
samba-278778c927b71847e87ce9b43e2a70665906befe.tar.xz
samba-278778c927b71847e87ce9b43e2a70665906befe.zip
s4-pydrs: added rodc option to python drs replication
Diffstat (limited to 'source4/scripting/python/samba/netcmd')
-rw-r--r--source4/scripting/python/samba/netcmd/rodc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/python/samba/netcmd/rodc.py b/source4/scripting/python/samba/netcmd/rodc.py
index 0fdb252b60..5f97c32b28 100644
--- a/source4/scripting/python/samba/netcmd/rodc.py
+++ b/source4/scripting/python/samba/netcmd/rodc.py
@@ -105,7 +105,7 @@ class cmd_rodc_preload(Command):
repl = drs_Replicate("ncacn_ip_tcp:%s[seal,print]" % server, lp, creds, local_samdb)
try:
repl.replicate(dn, source_dsa_invocation_id, destination_dsa_guid,
- exop=drsuapi.DRSUAPI_EXOP_REPL_SECRET)
+ exop=drsuapi.DRSUAPI_EXOP_REPL_SECRET, rodc=True)
except RuntimeError, (ecode, estring):
if estring == 'WERR_DS_DRA_ACCESS_DENIED':
local_samdb.transaction_cancel()