smb.conf in registry
mat at samba.org
Tue Sep 17 09:42:19 CEST 2013
On 09/14/2013 11:26 PM, Michael Adam wrote:
> Hi Matthieu,
> On 2013-09-14 at 12:46 -0700, Matthieu Patou wrote:
>> I'm trying to play a bit with the registry backend for smb.conf and
>> when I try to import a smb.conf that has been generated with
>> sudo ./bin/samba-tool domain provision --realm HOME.MATWS.NET
>> --domain MATWS --adminpass=totoTATA123
>> --targetdir=/home/mat/workspace/samba/hmn3 --server-role=dc
>> I have the following error:
>> Parameter 'lock directory' not allowed in registry
>> Why is it so ?
> Because the registry.tdb is paced in the "state directory"
> which is by default equal to the "lock directory".
> (So next reload would load a different registry than the first
> When I wrote this, there was no separate "state directory"
> parameter. So I should probably add "state directory" to the
> list of forbidden parameters...
That would be bad idea actually, as state is used to store the sysvol in
AD mode (well maybe it shouldn't be in lp_state ...) as it would pretty
much mean that we couldn't have the AD smb.conf in registry.
More information about the samba-technical