[Samba] easy - automated setup : Debian Wheezy with sernet samba 4.1

Rowland Penny rowlandpenny at googlemail.com
Thu Mar 27 04:05:25 MDT 2014


On 27/03/14 07:09, L.P.H. van Belle wrote:
> Good one.
>
> i only did check and i found it..
>
> testparm -v | grep sig
>          ntp signd socket directory =
>
> samba-tool testparm --verbose | grep sig
>
>          ntp signd socket directory = /var/lib/samba/ntp_signd
>
> so 2 tools to test parameters with different outcome.
>
> Is this by design and if so why? anyone?
>
>
>> -----Oorspronkelijk bericht-----
>> Van: Rowland Penny [mailto:rowlandpenny at googlemail.com]
>> Verzonden: woensdag 26 maart 2014 19:39
>> Aan: L.P.H. van Belle
>> Onderwerp: Re: [Samba] easy - automated setup : Debian Wheezy
>> with sernet samba 4.1
>>
>> On 26/03/14 16:00, L.P.H. van Belle wrote:
>>> Hai,
>>>    
>>> Im setting up scripted samba4 installs to make things more
>> uniform installations.
>>> It saves time, and errors, and it will be easier to trace bugs.
>>>    
>>> This is the first one and more are comming.
>>>    
>>>    
>>> How does it work and what do you need and what do you get in the end.
>>>    
>>> What you get.
>>> Debian wheezy, with sernet samba4.1
>>> - server setup as AD-DC  ( the first server with samba4 )
>>> - Bind9_dlz is used and reverse zone is auto created.
>>> - NTP server setup.
>>> - kerberos test scripted same as the hostname tests.
>>> - info is in the script, what to put where.
>>> - needed rights are fixed, where incorrect was found.
>>>    
>>>    
>>> Howto
>>> 1) install a clean debian wheezy, only ssh, more is
>> possible, but i tested with a very clean server.
>>> 2) get it :
>>> wget  --no-check-certificate
>> https://secure.bazuin.nl/scripts/debianWheezy-sernetSamba4-setu
>> p.sh && chmod +x debianWheezy-sernetSamba4-setup.sh &&
>> ./debianWheezy-sernetSamba4-setup.sh
>>> 3) configure it   : nano debianWheezy-sernetSamba4-setup.sh
>>> 4) run it.   ./debianWheezy-sernetSamba4-setup.sh
>>>    
>>> ToDo.
>>> In the next release of the script, it wil be Debian and
>> Ubuntu compatible.
>>> And i'll build in a choose which samba you want to install.
>>> For example.
>>> Debian + samba from backports
>>> Debian + samba from sernet
>>> Debian + samba from Debian
>>>    
>>> Ubuntu + samba from sernet  ( should work now already, but
>> not tested. )
>>>    ** you need to change the script a bit for this. Lines 210
>> + 212 and 213
>>>       change debian to ubuntu   and wheezy to precise
>>>        ** other ubuntu should work also but just try it and
>> report it back please.
>>>    
>>> So try it and report back to me if you have suggestions.
>>>    
>>>    
>>> Greetz,
>>>    
>>> Louis
>>>    
>>>    
>>>
>> Hi Louis, just glanced through your script and one part caught my eye:
>>
>> # set the ntp_signed path in samba ( default is empty )
>> ## hardcoded for now, need to look in to pass variable to sed
>> sed -i '8a\\n        ntp signd socket directory =
>> /var/lib/samba/ntp_signd\n' /etc/samba/smb.conf
>>
>> Have you ever run 'samba-tool testparm --verbose' ???? ;-)
>>
>> Of course, it doesn't help having two testparms, I do wish that they
>> would roll them into one.
>>
>> Rowland
>>
>>
I think that the idea is you use 'testparm' if you are running samba in 
'classic' mode and 'samba-tool testparm' in 'dc' mode. Only problem is 
that it confuses people, somebody a lot brighter than me, needs to 
combine the two, probably under samba-tool and with a switch i.e 
'samba-tool testparm classic' or 'samba-tool testparm dc'.

Rowland



More information about the samba mailing list