Tag: ldap
LDAP client issues in Debian lenny
by mensi on Sep.19, 2009, under debian
Apparently Debian decided to build libldap with GnuTLS instead of OpenSSL in Debian lenny, which can cause a lot of problems connecting to ldaps servers. Rebuilding the library with OpenSSL instead of GnuTLS fixed the problems for me.
Building the library by yourself is quite simple:
$ apt-get install dpkg-dev build-essential fakeroot debhelper libdb4.2-dev libgcrypt-dev unixodbc-dev libncurses5-dev libperl-dev libsasl2-dev libslp-dev libltdl3-dev libwrap0-dev debconf-utils po-debconf quilt autotools-dev libtool automake autoconf time libgnutls-dev libssl-dev
$ apt-get source libldap-2.4-2
$ cd openldap-2.4.11/
edit debian/configure-options to use OpenSSL instead of GnuTLS and then run the build. Make sure your loopback interface is configured and up and you have defined localhost in your /etc/hosts as the testsuite will fail othwerwise.
$ dpkg-buildpackage -rfakeroot -uc -us
You then should have a deb package with libldap build against OpenSSL.
If you do not want to rebuild libldap by yourself, feel free to use mine:
- debian lenny i386: libldap-2.4-2_2.4.11-1_i386.deb (md5: a5e37eb924b832192caa6312f21d7139)
- ubuntu hardy amd64: libldap-2.4-2_2.4.9-0ubuntu0.8.04.3_amd64.deb (md5: 49ccd6d71079102df6d91279b38eae1c)