/etc/ldap.conf
debug 255
logdir /var/log
/etc/nslcd.conf
# /etc/init.d/nscd stop
# /etc/init.d/nslcd stop
# nslcd -d
/etc/ldap.conf
debug 255
logdir /var/log
/etc/nslcd.conf
# /etc/init.d/nscd stop
# /etc/init.d/nslcd stop
# nslcd -d
Recently had to compile a much older version of OpenLDAP version 2.2.24 on relatively newer distro, in this case, SLES 11. I couldn’t find any working RPMs for this older software, so I decided to compile from src.
Here’s what I did, maybe this could help someone else..
Download Berkley DB, Oracle now owns Berkley DB which used to be owned by SleepyCat. Anyhow Oracle now charges for the newer copies of BerkleyDB (DAMN Oracle!) but you still can grab the older versions under GPL.
$ cd /tmp
$ wget http://download.oracle.com/berkeley-db/db-4.3.29.tar.gz
$ tar -xvzf db-4.3.29.tar.gz
$ cd /tmp/usr/local
$ mv BerkeleyDB.4.3 /usr/local
To get OpenLDAP 2.2.24 to compile, had to setup some environment varibles first..
|
1 2 3 4 5 6 7 8 |
CPPFLAGS="-I/usr/local/BerkeleyDB.4.3/include" export CPPFLAGS LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.3/lib -R/usr/local/BerkeleyDB.4.3/lib" export LDFLAGS LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.3/lib" export LD_LIBRARY_PATH Same shell; |
|
1 |
./configure --enable-modules --enable-crypt --prefix=/motr/openldap |
To make and install:
|
1 2 3 4 |
make depend make make test sudo make install |