Installing LDAP in Ubuntu

Lets install slapd, utilities and few libraries

sudo apt-get install libldap-2.4-2  slapd ldap-utils

The installation will set some default, but we would like to customize some of it, so lets execute

sudo dpkg-reconfigure slapd

We also would like to install PHPmyLDAPAdmin

sudo apt-get update
sudo apt-get install phpldapadmin

Edit /etc/phpldapadmin/config.php with the appropriate values.