Compile on Lenny


In this page we show howto compile it on debian Lenny with distribution package

:!: Becareful they are lot of bug in 2.4.11 OpenLDAP version, use it at your own risk

Debian Installation

This documentation apply on Lenny 32 bits only and compile the module less cracklib dictionary.

Package prerequisite

Install the following package

 aptitude install gcc libldap2-dev dpkg-dev cracklib-dev libdb4.6-dev

Verify path for src package

 vi /etc/apt/sources.list
 ... ...
 deb-src lenny/updates main contrib non-free
 ... ...

get source of slapd package

 cd /root
 apt-get update
 apt-get source slapd

Opendlap compilation prerequisite

To compile the check_password module we need of some header file that aren't exist into the source tree, but create on configure and make step

cd /root/openldap-2.4.11

Compile check_password module

Get module

 wget DOWNLOADURL/ltb-project-openldap-ppolicy-check-password-1.1.tar.gz
 tar -xvzf ltb-project-openldap-ppolicy-check-password-1.1.tar.gz
 cd ltb-project-openldap-ppolicy-check-password-1.1.tar.gz

Compile it

 make CONFIG="/etc/ldap/check_password.conf" LDAP_INC="-I/root/openldap-2.4.11/include/ -I/root/openldap-2.4.11/servers/slapd"