Add missing parameters to drs_Replicate in rodc.py
Michael Brown
michael at netdirect.ca
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
main.adlab.netdirect.ca
Replicating DN CN=Michael
Brown,OU=Main,OU=Offices,DC=main,DC=adlab,DC=netdirect,DC=ca
ERROR(<type 'exceptions.TypeError'>): uncaught exception - __init__()
takes exactly 6 arguments (5 given)
File "/usr/lib64/python2.6/site-packages/samba/netcmd/__init__.py",
line 175, in _run
return self.run(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/samba/netcmd/rodc.py", 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
tdb:///var/lib/samba/private/sam.ldb
M.
--
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...
Name: 0001-Add-missing-parameters-to-drs_Replicate-in-rodc.py.patch
Type: text/x-patch
Size: 1369 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131121/2dd62c86/attachment.bin>
More information about the samba-technical
mailing list