[Samba] samba_dlz: Failed to connect

Rowland Penny rowlandpenny241155 at gmail.com
Thu Sep 3 18:17:12 UTC 2015


On 03/09/15 19:05, Robert Moskowitz wrote:
>
>
> On 09/03/2015 01:59 PM, Sketch wrote:
>> On Thu, 3 Sep 2015, Rowland Penny wrote:
>>
>>>  What are the permissions on /var/lib/samba/private/dns ?
>>
>> Also don't forget the permissions on /var/lib/samba/private
>>
>> If you're using sernet's packages, you'll have to chgrp it to to 
>> named or give it o+x perms.
>
> chown root:named /var/lib/samba/private
>
> Wow that was it!
>
> DLZ is up and running.  Lots more to get right in the bind config....
>
> Is there a web app to front end samba-tools for maintaining at least 
> the dns portion?

Yes, it is called RSAT and runs on windows :-D

>
> Anyway, next to DHCP...
>
> I have installed it.  But need to config.  Rowland, can you send me 
> your sample config you mentioned?
>
>
>

default-lease-time 14400;
max-lease-time 14400;
authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.21 192.168.0.229;
    option subnet-mask 255.255.255.0;
    option broadcast-address 192.168.0.255;
    option time-offset 0;
    option routers 192.168.0.1;
    option domain-name "example.com";
    option domain-name-servers 192.168.0.2;
    option domain-search "example.com";
    option netbios-name-servers 192.168.0.2;
    option ntp-servers 192.168.0.2;
}

on commit {
set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
set ClientDHCID = binary-to-ascii(16, 8, ":", hardware);
set ClientName = pick-first-value(option host-name, 
config-option-host-name, client-name);
log(concat("Commit: IP: ", ClientIP, " DHCID: ", ClientDHCID, " Name: ", 
ClientName));
execute("/usr/local/sbin/dhcp-dyndns.sh", "add", ClientIP, ClientDHCID, 
ClientName);
}

on release {
set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
set ClientDHCID = binary-to-ascii(16, 8, ":", hardware);
log(concat("Release: IP: ", ClientIP));
execute("/usr/local/sbin/dhcp-dyndns.sh", "delete", ClientIP, ClientDHCID);
}

Rowland



More information about the samba mailing list