[Samba] samba_dlz: Failed to connect
Rowland Penny
rowlandpenny241155 at gmail.com
Thu Sep 3 18:22:29 UTC 2015
On 03/09/15 19:19, Robert Moskowitz wrote:
>
>
> On 09/03/2015 02:12 PM, Rowland Penny wrote:
>> On 03/09/15 19:01, Robert Moskowitz wrote:
>>>
>>>
>>> On 09/03/2015 01:48 PM, Rowland Penny wrote:
>>>> On 03/09/15 18:38, Robert Moskowitz wrote:
>>>>> Progress on dns_dlz. At least I got things loading. If I don't
>>>>> include the dlz info bind starts, but if I do I get:
>>>>>
>>>>> Sep 03 13:31:57 homebase.home.htt named[21920]: Loading 'AD DNS
>>>>> Zone' using driver dlopen
>>>>> Sep 03 13:31:58 homebase.home.htt named[21920]: samba_dlz: Failed
>>>>> to connect to /var/lib/samba/private/dns/sam.ldb
>>>>>
>>>>>
>>>>> permissions seem right:
>>>>>
>>>>> # ls -ls /var/lib/samba/private/dns/sam*
>>>>> 2944 -rw-rw---- 1 root named 3014656 Aug 27 18:07
>>>>> /var/lib/samba/private/dns/sam.ldb
>>>>>
>>>>> /var/lib/samba/private/dns/sam.ldb.d:
>>>>> total 26312
>>>>> 8112 -rw-rw---- 1 root named 8306688 Aug 27 18:07
>>>>> CN=CONFIGURATION,DC=HOME,DC=HTT.ldb
>>>>> 8236 -rw-rw---- 1 root named 8433664 Aug 27 18:07
>>>>> CN=SCHEMA,CN=CONFIGURATION,DC=HOME,DC=HTT.ldb
>>>>> 4148 -rw-rw---- 2 root named 4247552 Aug 27 18:07
>>>>> DC=DOMAINDNSZONES,DC=HOME,DC=HTT.ldb
>>>>> 4148 -rw-rw---- 2 root named 4247552 Aug 27 18:07
>>>>> DC=FORESTDNSZONES,DC=HOME,DC=HTT.ldb
>>>>> 1256 -rw-rw---- 1 root named 1286144 Aug 27 18:07 DC=HOME,DC=HTT.ldb
>>>>> 412 -rw-rw---- 2 root named 421888 Aug 28 12:02 metadata.tdb
>>>>>
>>>>> The include is really simple:
>>>>>
>>>>> dlz "AD DNS Zone" {
>>>>>
>>>>> # For BIND 9.9.x
>>>>> database "dlopen /usr/lib/samba/bind9/dlz_bind9_9.so";
>>>>>
>>>>> };
>>>>>
>>>>>
>>>>>
>>>>
>>>> What are the permissions on /var/lib/samba/private/dns ?
>>> # ls -ls /var/lib/samba/private
>>> total 12484
>>> 4 drwxrwx--- 3 root named 4096 Aug 27 18:07 dns
>>>
>>> I fixed a recursion problem to get general forwarding working then
>>> reactiveated the include and this time the failure was a little more
>>> informative:
>>>
>>>
>>> Sep 03 13:56:30 homebase.home.htt named[22668]: Loading 'AD DNS
>>> Zone' using driver dlopen
>>> Sep 03 13:56:31 homebase.home.htt named[22668]: samba_dlz: Failed to
>>> connect to /var/lib/samba/private/dns/sam.ldb
>>> Sep 03 13:56:31 homebase.home.htt named[22668]: dlz_dlopen of 'AD
>>> DNS Zone' failed
>>> Sep 03 13:56:31 homebase.home.htt named[22668]: SDLZ driver failed
>>> to load.
>>> Sep 03 13:56:31 homebase.home.htt named[22668]: DLZ driver failed to
>>> load.
>>>
>>>
>>
>> I have just thought, this is the ARM build isn't it? So, is your
>> version of named built to use the dlz option ?
>
> I had investigated that last week, and seemed good. Actually I think
> the .so file comes from the sernet rpm, and that was done on a arm
> qemm where we are doing our os builds and there were no errors.
>
> Anyway, you can see it is now working and I can actually do a lookup
> against the ldap database!
>
>
Yeah, straight after I posted, your post popped up saying you had fixed
it, wish they were all so easy to fix :-D
Rowland
More information about the samba
mailing list