mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
Add missing parameters to drs_Replicate in rodc.py
* rodc.py: destination_dsa_guid parameter was neglected in drs_Replicate call * rodc.py: cancel the local_samdb transaction on error Change-Id: I962315a26ec48dc8774bb41db760387a3469c919 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Garming Sam <garming@samba.org> Autobuild-Date(master): Thu Oct 23 03:05:00 CEST 2014 on sn-devel-104
This commit is contained in:
parent
3a7fd8b0e9
commit
88f9f50024
@ -91,11 +91,13 @@ class cmd_rodc_preload(Command):
|
||||
destination_dsa_guid = misc.GUID(local_samdb.get_ntds_GUID())
|
||||
|
||||
local_samdb.transaction_start()
|
||||
repl = drs_Replicate("ncacn_ip_tcp:%s[seal,print]" % server, lp, creds, local_samdb)
|
||||
repl = drs_Replicate("ncacn_ip_tcp:%s[seal,print]" % server, lp, creds,
|
||||
local_samdb, destination_dsa_guid)
|
||||
try:
|
||||
repl.replicate(dn, source_dsa_invocation_id, destination_dsa_guid,
|
||||
exop=drsuapi.DRSUAPI_EXOP_REPL_SECRET, rodc=True)
|
||||
except Exception, e:
|
||||
local_samdb.transaction_cancel()
|
||||
raise CommandError("Error replicating DN %s" % dn, e)
|
||||
local_samdb.transaction_commit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user