On Wed, Mar 21, 2012 at 3:09 PM, Datty datty@gmail.com wrote:
Hi all,
I'm in the process of setting up samba4 to trial the domain setup but I'm
having problems getting bind to start with dlz turned on.
I've pasted the output from syslog as bind is started. It seems to be
looking for libsamdb-common.so which is located in /usr/lib/samba but it
doesnt seem to be able to find it.
Hopefully someones fought with this already!
Thanks for your help
Oliver
Mar 21 15:07:23 LDC1 named[1646]: starting BIND 9.8.1-P1 -u named -d 3
Mar 21 15:07:23 LDC1 named[1646]: built with '--prefix=/usr'
'--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib'
'--libdir=/usr/lib64' '--sysconfdir=/etc/bind' '--localstatedir=/var'
'--with-libtool' '--disable-threads' '--with-dlopen'
'--with-dlz-filesystem' '--with-dlz-stub' '--without-dlz-postgres'
'--without-dlz-mysql' '--with-dlz-bdb' '--with-dlz-ldap'
'--without-dlz-odbc' '--with-openssl' '--without-idn' '--disable-ipv6'
'--without-libxml2' '--with-gssapi' '--disable-rpz-nsip'
'--disable-rpz-nsdname' '--without-pkcs11' '--disable-linux-caps'
'--without-gost' '--with-randomdev=/dev/urandom'
'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu'
'CFLAGS=-O2 -pipe -march=native -fomit-frame-pointer -I/usr/include/db4.8'
'LDFLAGS=-Wl,-O1 -Wl,--as-needed'
Mar 21 15:07:23 LDC1 named[1646]: using up to 4096 sockets
Mar 21 15:07:23 LDC1 named[1646]: loading configuration from
'/etc/bind/named.conf'
Mar 21 15:07:23 LDC1 named[1646]: reading built-in trusted keys from file
'/etc/bind/bind.keys'
Mar 21 15:07:23 LDC1 named[1646]: using default UDP/IPv4 port range:
[1024, 65535]
Mar 21 15:07:23 LDC1 named[1646]: using default UDP/IPv6 port range:
[1024, 65535]
Mar 21 15:07:23 LDC1 named[1646]: listening on IPv4 interface eth0,
10.251.64.8#53
Mar 21 15:07:23 LDC1 named[1646]: generating session key for dynamic DNS
Mar 21 15:07:23 LDC1 named[1646]: sizing zone task pool based on 3 zones
Mar 21 15:07:23 LDC1 named[1646]: zone 'localhost' allows updates by IP
address, which is insecure
Mar 21 15:07:23 LDC1 named[1646]: zone '127.in-addr.arpa' allows updates
by IP address, which is insecure
Mar 21 15:07:23 LDC1 named[1646]: Loading 'AD DNS Zone' using driver dlopen
Mar 21 15:07:23 LDC1 named[1646]: dlz_dlopen failed to open library
'/usr/lib64/bind9/dlz_bind9.so' - libsamdb-common.so: cannot open shared
object file: No such file or directory
Mar 21 15:07:23 LDC1 named[1646]: dlz_dlopen of 'AD DNS Zone' failed
Mar 21 15:07:23 LDC1 named[1646]: SDLZ driver failed to load.
Mar 21 15:07:23 LDC1 named[1646]: DLZ driver failed to load.
Mar 21 15:07:23 LDC1 named[1646]: loading configuration: failure
Mar 21 15:07:23 LDC1 named[1646]: exiting (due to fatal error)
Mar 21 15:07:23 LDC1 /etc/init.d/named[1644]: start-stop-daemon: failed to
start `/usr/sbin/named'
Mar 21 15:07:23 LDC1 /etc/init.d/named[1513]: ERROR: named failed to start
Just a little addition, I've just run ldd against the library thats trying
to load and ive pasted the output below. It seems to require
libsamdb-common.so twice but is only able to find it once?
Thanks again
LDC1 / # ldd /usr/lib/bind9/dlz_bind9.so
linux-vdso.so.1 = (0x02f7c141f000)
libsamdb.so.0 = /usr/lib64/libsamdb.so.0 (0x02f7c0fff000)
libsamba-hostconfig.so.0 = /usr/lib64/libsamba-hostconfig.so.0
(0x02f7c0ddc000)
libgensec.so.0 = /usr/lib64/libgensec.so.0 (0x02f7c0bb6000)
libsamba-util.so.0 = /usr/lib64/libsamba-util.so.0
(0x02f7c097c000)
libsamdb-common.so = not found
libauthkrb5.so = not found
libndr-samba.so = not found
libsamba-credentials.so.0 = /usr/lib64/libsamba-credentials.so.0
(0x02f7c075a000)
libndr.so.0 = /usr/lib64/libndr.so.0 (0x02f7c054)
libevents.so = not found
libtalloc.so.2 = /usr/lib64/libtalloc.so.2 (0x02f7c0331000)
libldb.so.1 = /usr/lib64/libldb.so.1 (0x02f7c010)
libpopt.so.0 = /usr/lib64/libpopt.so.0 (0x02f7bfef3000)
libc.so.6 = /lib64/libc.so.6 (0x02f7bfb64000)
libsamdb-common.so = /usr/lib64/samba/libsamdb-common.so
(0x02f7bf944000)
libcli-ldap-common.so = /usr/lib64/samba/libcli-ldap-common.so
(0x02f7bf73d000)
libauthkrb5.so = /usr/lib64/samba/libauthkrb5.so
(0x02f7bf52c000)
libldbsamba.so = /usr/lib64/samba/libldbsamba.so
(0x02f7bf301000)
libcliauth.so = /usr/lib64/samba/libcliauth.so (0x02f7bf0e9000)
liberrors.so = /usr/lib64/samba/liberrors.so (0x02f7bee63000)
libsecurity.so = /usr/lib64/samba/libsecurity.so
(0x02f7bec42000)
libgssapi.so.3 = /usr/lib64/libgssapi.so.3 (0x02f7be9ff000)
libkrb5.so.26 = /usr/lib64/libkrb5.so.26 (0x02f7be77)
libpthread.so.0 =