Add missing parameters to drs_Replicate in

Michael Brown michael at
Thu Nov 21 09:05:25 MST 2013

This patch makes the drs_Replicate actually work... there was a missing 
parameter. And adds the transaction cancellation on error.

sles-shire:/home/michael # samba-tool rodc preload 'michael' --server
Replicating DN CN=Michael 
ERROR(<type 'exceptions.TypeError'>): uncaught exception - __init__() 
takes exactly 6 arguments (5 given)
   File "/usr/lib64/python2.6/site-packages/samba/netcmd/", 
line 175, in _run
     return*args, **kwargs)
   File "/usr/lib64/python2.6/site-packages/samba/netcmd/", line 
94, in run
     repl = drs_Replicate("ncacn_ip_tcp:%s[seal,print]" % server, lp, 
creds, local_samdb)
A transaction is still active in ldb context [0xd614f0] on 


Michael Brown               | `One of the main causes of the fall of
Systems Consultant          | the Roman Empire was that, lacking zero,
Net Direct Inc.             | they had no way to indicate successful
?: +1 519 883 1172 x5106    | termination of their C programs.' - Firth

-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-patch
Size: 1369 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list