[Samba] Prepopulate *all* users to a samba4 RODC
Michael Brown
michael at netdirect.ca
Wed Nov 20 11:55:30 MST 2013
On 13-11-19 05:17 PM, Michael Brown wrote:
> Ack, I'm having trouble replicating *one*:
>
> sles-shire:/home/michael # samba-tool rodc preload 'WIN7-SHIRE$'
> --server main.adlab.netdirect.ca
> Replicating DN
> CN=WIN7-SHIRE,CN=Computers,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
Diving into the source, looks like samba-tool operates directly on the
local database? And thus the local samba server must be stopped?
# connect to the remote and local SAMs
samdb = SamDB(url="ldap://%s" % server,
session_info=system_session(),
credentials=creds, lp=lp)
local_samdb = SamDB(url=None, session_info=system_session(),
credentials=creds, lp=lp)
Is that correct?
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
More information about the samba
mailing list