Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   Bind9 and Samba4 setup nightmare (http://www.linux-archive.org/gentoo-user/647300-bind9-samba4-setup-nightmare.html)

Datty 03-21-2012 02:09 PM

Bind9 and Samba4 setup nightmare
 
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

Datty 03-21-2012 02:15 PM

Bind9 and Samba4 setup nightmare
 
On Wed, Mar 21, 2012 at 3:09 PM, Datty <datty.wtb@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 =>* (0x000002f7c141f000)
******* libsamdb.so.0 => /usr/lib64/libsamdb.so.0 (0x000002f7c0fff000)
******* libsamba-hostconfig.so.0 => /usr/lib64/libsamba-hostconfig.so.0 (0x000002f7c0ddc000)


******* libgensec.so.0 => /usr/lib64/libgensec.so.0 (0x000002f7c0bb6000)
******* libsamba-util.so.0 => /usr/lib64/libsamba-util.so.0 (0x000002f7c097c000)
******* libsamdb-common.so => not found
******* libauthkrb5.so => not found


******* libndr-samba.so => not found
******* libsamba-credentials.so.0 => /usr/lib64/libsamba-credentials.so.0 (0x000002f7c075a000)
******* libndr.so.0 => /usr/lib64/libndr.so.0 (0x000002f7c0540000)
******* libevents.so => not found


******* libtalloc.so.2 => /usr/lib64/libtalloc.so.2 (0x000002f7c0331000)
******* libldb.so.1 => /usr/lib64/libldb.so.1 (0x000002f7c0100000)
******* libpopt.so.0 => /usr/lib64/libpopt.so.0 (0x000002f7bfef3000)


******* libc.so.6 => /lib64/libc.so.6 (0x000002f7bfb64000)
******* libsamdb-common.so => /usr/lib64/samba/libsamdb-common.so (0x000002f7bf944000)
******* libcli-ldap-common.so => /usr/lib64/samba/libcli-ldap-common.so (0x000002f7bf73d000)


******* libauthkrb5.so => /usr/lib64/samba/libauthkrb5.so (0x000002f7bf52c000)
******* libldbsamba.so => /usr/lib64/samba/libldbsamba.so (0x000002f7bf301000)
******* libcliauth.so => /usr/lib64/samba/libcliauth.so (0x000002f7bf0e9000)


******* liberrors.so => /usr/lib64/samba/liberrors.so (0x000002f7bee63000)
******* libsecurity.so => /usr/lib64/samba/libsecurity.so (0x000002f7bec42000)
******* libgssapi.so.3 => /usr/lib64/libgssapi.so.3 (0x000002f7be9ff000)


******* libkrb5.so.26 => /usr/lib64/libkrb5.so.26 (0x000002f7be770000)
******* libpthread.so.0 => /lib64/libpthread.so.0 (0x000002f7be553000)
******* libserver-role.so => /usr/lib64/samba/libserver-role.so (0x000002f7be350000)


******* libsamba-modules.so => /usr/lib64/samba/libsamba-modules.so (0x000002f7be14c000)
******* libtevent-util.so.0 => /usr/lib64/libtevent-util.so.0 (0x000002f7bdf48000)
******* libndr-samba.so => /usr/lib64/samba/libndr-samba.so (0x000002f7bdc64000)


******* libsamba-sockets.so => /usr/lib64/samba/libsamba-sockets.so (0x000002f7bda48000)
******* libasn1util.so => /usr/lib64/samba/libasn1util.so (0x000002f7bd841000)
******* libcom_err.so.2 => /lib64/libcom_err.so.2 (0x000002f7bd63d000)


******* libtevent.so.0 => /usr/lib64/libtevent.so.0 (0x000002f7bd42e000)
******* librt.so.1 => /lib64/librt.so.1 (0x000002f7bd225000)
******* libUTIL_TDB.so => /usr/lib64/samba/libUTIL_TDB.so (0x000002f7bd020000)


******* libtdb-wrap.so => /usr/lib64/samba/libtdb-wrap.so (0x000002f7bce1d000)
******* libdl.so.2 => /lib64/libdl.so.2 (0x000002f7bcc18000)
******* /lib64/ld-linux-x86-64.so.2 (0x000002f7c1421000)
******* libflag_mapping.so => /usr/lib64/samba/libflag_mapping.so (0x000002f7bca15000)


******* libauth_sam_reply.so => /usr/lib64/samba/libauth_sam_reply.so (0x000002f7bc810000)
******* libndr-krb5pac.so.0 => /usr/lib64/libndr-krb5pac.so.0 (0x000002f7bc604000)
******* libasn1.so.8 => /usr/lib64/libasn1.so.8 (0x000002f7bc358000)


******* libtdb.so.1 => /usr/lib64/libtdb.so.1 (0x000002f7bc143000)
******* libheimntlm.so.0 => /usr/lib64/libheimntlm.so.0 (0x000002f7bbf3b000)
******* libheimbase.so.1 => /usr/lib64/libheimbase.so.1 (0x000002f7bbd35000)


******* libhx509.so.5 => /usr/lib64/libhx509.so.5 (0x000002f7bbae3000)
******* libwind.so.0 => /usr/lib64/libwind.so.0 (0x000002f7bb8ba000)
******* libsqlite3.so.0 => /usr/lib64/libsqlite3.so.0 (0x000002f7bb607000)


******* libhcrypto.so.4 => /usr/lib64/libhcrypto.so.4 (0x000002f7bb3cc000)
******* libroken.so.18 => /usr/lib64/libroken.so.18 (0x000002f7bb1b4000)
******* libcrypt.so.1 => /lib64/libcrypt.so.1 (0x000002f7baf7c000)


******* libresolv.so.2 => /lib64/libresolv.so.2 (0x000002f7bad65000)
******* libndr-standard.so.0 => /usr/lib64/libndr-standard.so.0 (0x000002f7ba813000)
******* libndr-nbt.so.0 => /usr/lib64/libndr-nbt.so.0 (0x000002f7ba5fb000)


******* libz.so.1 => /lib64/libz.so.1 (0x000002f7ba3e4000)


All times are GMT. The time now is 11:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.