smb.conf in registry
Michael Adam
obnox at samba.org
Sun Sep 15 08:26:21 CEST 2013
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
load...)
When I wrote this, there was no separate "state directory"
parameter. So I should probably add "state directory" to the
list of forbidden parameters...
See source3/lib/smbconf/smbconf_reg.c:smbconf_reg_valname_forbidden()
Cheers - Michael
> ps: I attached my smb.conf.
>
> Matthieu
>
> --
> Matthieu Patou
> Samba Team
> http://samba.org
>
> # Global parameters
> [global]
> workgroup = MATWS
> realm = HOME.MATWS.NET
> netbios name = MPATOU-T420
> server role = active directory domain controller
> private dir = /home/mat/workspace/samba/hmn3/private
> lock directory = /home/mat/workspace/samba/hmn3
> state directory = /home/mat/workspace/samba/hmn3/state
> cache directory = /home/mat/workspace/samba/hmn3/cache
> dns forwarder = 172.24.245.15
> xattr_tdb:file = /home/mat/workspace/samba/hmn3/state/xattr.tdb
>
> [netlogon]
> path = /home/mat/workspace/samba/hmn3/state/sysvol/home.matws.net/scripts
> read only = No
>
> [sysvol]
> path = /home/mat/workspace/samba/hmn3/state/sysvol
> read only = No
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 215 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130915/5ecfb2b7/attachment.pgp>
More information about the samba-technical
mailing list