Kolab 3 and Debian Wheezy - Small LDAP issue and quick fix

Yesterday I experienced strange problem after Kolab 3 installation on Debian Wheezy as I couldn't add an initial user account using admin interface.

The very first thing to check if you are having this problem is to execute command:

# /usr/lib/mozldap/ldapsearch 
/usr/lib/mozldap/ldapsearch: error while loading shared libraries: libsoftokn3.so: cannot open shared object file: No such file or directory
# ldd /usr/lib/mozldap/ldapsearch 
	linux-vdso.so.1 =>  (0x00007fffde9cb000)
	libssldap60.so.0d => /usr/lib/libssldap60.so.0d (0x00007f74dc010000)
	libprldap60.so.0d => /usr/lib/libprldap60.so.0d (0x00007f74dbe0a000)
	libldap60.so.0d => /usr/lib/libldap60.so.0d (0x00007f74dbbb7000)
	libldif60.so.0d => /usr/lib/libldif60.so.0d (0x00007f74db9b4000)
	libsvrcore.so.0 => /usr/lib/libsvrcore.so.0 (0x00007f74db7b0000)
	libssl3.so => /usr/lib/x86_64-linux-gnu/libssl3.so (0x00007f74db56a000)
	libsmime3.so => /usr/lib/x86_64-linux-gnu/libsmime3.so (0x00007f74db33d000)
	libnss3.so => /usr/lib/x86_64-linux-gnu/libnss3.so (0x00007f74dafff000)
	libnssutil3.so => /usr/lib/x86_64-linux-gnu/libnssutil3.so (0x00007f74dadd2000)
	libsoftokn3.so => not found
	libplds4.so => /usr/lib/x86_64-linux-gnu/libplds4.so (0x00007f74dabce000)
	libplc4.so => /usr/lib/x86_64-linux-gnu/libplc4.so (0x00007f74da9c8000)
	libnspr4.so => /usr/lib/x86_64-linux-gnu/libnspr4.so (0x00007f74da788000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f74da56c000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f74da367000)
	libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f74da14c000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f74d9f36000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f74d9c2e000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f74d99ac000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f74d9796000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f74d940b000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f74d91f4000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f74dc226000)

Library missing above is available in the following directory:

# ls /usr/lib/x86_64-linux-gnu/nss
libfreebl3.chk	libfreebl3.so  libnssckbi.so  libnssdbm3.chk  libnssdbm3.so  libsoftokn3.chk  libsoftokn3.so

Solution is to append above mentioned directory to the run-time link-editor configuration file and rebuild cache afterwards:

# cat /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
# vi /etc/ld.so.conf.d/x86_64-linux-gnu.conf
# Multiarch support
/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/nss
# ldconfig

Verify that above problem is solved by executing mentioned earlier ldapsearch command and log in again to the web interface.

Milosz Galazka's Picture

About Milosz Galazka

Milosz is a Linux Foundation Certified Engineer working for a successful Polish company as a system administrator and a long time supporter of Free Software Foundation and Debian operating system. He is also open for new opportunities and challenges.

Gdansk, Poland https://sleeplessbeastie.eu