[Samba] Unable to manage dns (ERR_DNS_ERROR_DS_UNAVAILABLE)

L.P.H. van Belle belle at bazuin.nl
Tue Jun 16 01:26:54 MDT 2015


just saw this ....

>> [root at unxads002 ~]# ls -lh /var/lib/samba/private/dns/sam.ldb.d/
>> -rw-r----- 1 root root 7.4M Aug  4  2014 
>CN=CONFIGURATION,DC=DOMAIN,DC=LOCAL.ldb
>> -rw-r----- 1 root root 7.8M Aug  4  2014 
>CN=SCHEMA,CN=CONFIGURATION,DC=DOMAIN,DC=LOCAL.ldb
>bind needs w here too:
>> -rw-r----- 1 root root 676K Aug  4  2014 
>DC=DOMAINDNSZONES,DC=DOMAIN,DC=LOCAL.ldb
>> -rw-r----- 1 root root 3.0M Aug  4  2014 

Alle incorrect rights, and thats your problem.
Bind cant write.


Your folder 
/var/lib/samba/private/dns/sam.ldb.d/ 
has 750 set, should be 770 
and root:root, should be root:bind. 

please check, from this point, below is what you want. 
/var/lib/samba/private/dns
drwxrwx---  3 root bind    4096 Jun  1 09:41 dns

so do a chgrp bind on all files and folders.. 
and make sure you have 660 set on the files. 
and that should fix it. 

Greetz, 

Louis






>-----Oorspronkelijk bericht-----
>Van: buhorojo.lcb at gmail.com 
>[mailto:samba-bounces at lists.samba.org] Namens buhorojo
>Verzonden: maandag 15 juni 2015 19:12
>Aan: samba at lists.samba.org
>Onderwerp: Re: [Samba] Unable to manage dns 
>(ERR_DNS_ERROR_DS_UNAVAILABLE)
>
>On 15/06/15 00:28, Peter Beck wrote:
>> what I've also recognized:
>>
>> on a pure Samba4 domain (2 domain controllers) there is the directory
>> /var/lib/private/samba/dns with a "sam.ldb" file and a subdirectory
>> "sam.ldb.d" containing all zones as ldb files:
>>
>> [root at unxads002 ~]# ls -lh /var/lib/samba/private/dns/sam.ldb.d/
>> -rw-r----- 1 root root 7.4M Aug  4  2014 
>CN=CONFIGURATION,DC=DOMAIN,DC=LOCAL.ldb
>> -rw-r----- 1 root root 7.8M Aug  4  2014 
>CN=SCHEMA,CN=CONFIGURATION,DC=DOMAIN,DC=LOCAL.ldb
>bind needs w here too:
>> -rw-r----- 1 root root 676K Aug  4  2014 
>DC=DOMAINDNSZONES,DC=DOMAIN,DC=LOCAL.ldb
>> -rw-r----- 1 root root 3.0M Aug  4  2014 
>DC=FORESTDNSZONES,DC=DOMAIN,DC=LOCAL.ldb
>
>> -rw-r----- 1 root root  52K Aug  4  2014 DC=DOMAIN,DC=LOCAL.ldb
>> -rw-rw---- 2 root bind 412K Jun 14 20:06 metadata.tdb
>>
>>
>> The sam.ldb file contains one single record:
>>
>> # editing 1 records
>> # record 1
>> dn: DC=domain,DC=local
>> instanceType: 5
>> objectClass: top
>> objectClass: domaindns
>> objectGUID: ffc42d7d-2d34-486d-ab9b-0741871ca1d9
>> objectSid: S-1-5-21-2026243258-1306757702-3697109298
>> distinguishedName: DC=domain,DC=local
>>
>>
>> This directory is completely missing on the Samba dc which 
>was added to
>> the Server 2003 domain.
>>
>> How can I get this files ? Can I manually force the creation 
>? Sounds to
>> me like this could be the problem ?
>>
>> Regards
>> Peter
>Is bind installed?
>-- 
>To unsubscribe from this list go to the following URL and read the
>instructions:  https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list