Web lists-archives.com

Re: [Samba] dlz_bind9_9.so: failed to map segment from shared object




On 25/05/2019 19:31, Maurizio Caloro via samba wrote:
Hello dear Samba Group

i try to install from repository Samba 4.10 on Ubuntu 19.04 - 64b with
local BIND-9.11 Server.
Lookop and Revers runnig .... after re-run Bind appair the following
Error.

  /usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so failed to map
segment from shared object

"named[7726]: dlz_dlopen failed to open library
'/usr/local/samba/lib/bind9/dlz_bind9_9.so' -
/usr/local/samba/lib/bind9/dlz_bind9_9.so: failed to map segment from
shared object"

--

i add group-owner "Bind" to File dlz_bind9_9.so nothing Change.

--

also add:
root@X200:/etc/apparmor.d/local# cat usr.sbin.named

/var/lib/samba/** r,
/var/lib/samba/private/dns.keytab r,
/etc/bind/named.conf r,
/var/lib/samba/private/dns/** rwk,
/etc/samba/smb.conf r,
/var/lib/samba/bind-dns/named.conf r,
/var/lib/samba/bind-dns/** rwk,
/etc/samba/smb.conf r,
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so rm,

--

and i add the Bind Zone string to /etc/bind/named.conf

dlz "AD DNS Zone" {
     # For BIND 9.11.0
      database "dlopen
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so";
};


oot@X200:/etc/apparmor.d/local# systemctl status bind9
● bind9.service - BIND Domain Name Server
    Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor
preset: enabled)
    Active: failed (Result: exit-code) since Sat 2019-05-25 20:24:23 CEST;
4min 26s ago
      Docs: man:named(8)
   Process: 4629 ExecStart=/usr/sbin/named $OPTIONS (code=exited,
status=1/FAILURE)

Mai 25 20:24:23 X200 named[4638]: Loading 'AD DNS Zone' using driver
dlopen
Mai 25 20:24:23 X200 named[4638]: dlz_dlopen failed to open library
'/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so' -
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_11.so: failed to map
segment from shared object
Mai 25 20:24:23 X200 named[4638]: dlz_dlopen of 'AD DNS Zone' failed
Mai 25 20:24:23 X200 named[4638]: SDLZ driver failed to load.
Mai 25 20:24:23 X200 named[4638]: DLZ driver failed to load.
Mai 25 20:24:23 X200 named[4638]: loading configuration: failure
Mai 25 20:24:23 X200 named[4638]: exiting (due to fatal error)
Mai 25 20:24:23 X200 systemd[1]: bind9.service: Control process exited,
code=exited, status=1/FAILURE
Mai 25 20:24:23 X200 systemd[1]: bind9.service: Failed with result
'exit-code'.
Mai 25 20:24:23 X200 systemd[1]: Failed to start BIND Domain Name Server.
root@X200:/etc/apparmor.d/local#

regards
Mauri

Was Bind9 installed when you provisioned Samba ?

Why does the first 'named' log line refer to 'dlz_bind9_9.so' ?

Can you post the contents of your named.conf files ?

Rowland



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba