PHPLDAPAdmin is an application for the LDAP server administration developed in with PHP.
Once installed in a LAMP server we could to administer the Directory Service through the internet.
See my refference table as allways:
Origin
http://phpldapadmin.sourceforge.net/
Repository
http://phpldapadmin.sourceforge.net/download.php
Package
phpldapadmin-1.1.0-alpha3.tar.gz
Documentation (english)
http://wiki.phpldapadmin.info/tiki-index.php?page=Documentation&bl&bl=y
Installation:
- Unzip and move the pacckage to the web root directory:
tar -zxvf phpldapadmin-1.1.0-alpha3.tar.gz
mv phpldapadmin-1.1.0-alpha3 /var/www/ldap
- Copy the default config file to the real config file:
cd /var/www/ldap
cp config/config.php.example config/config.php
Configuration:
- Add the server (we could administer many directories as we want):
$ldapservers->SetValue($i,'server','name','Descriptive name for the server');
// In my case the directory is in the same machine as PHPLDAPAdmin, unless
// we write the server IP.
$ldapservers->SetValue($i,'server','host','127.0.0.1');
// Port of the service
$ldapservers->SetValue($i,'server','port','389');
// Directory domain
$ldapservers->SetValue($i,'server','base',array('dc=lebrijo,dc=com'));
$ldapservers->SetValue($i,'server','auth_type','session');
$ldapservers->SetValue($i,'login','attr','cn');
$ldapservers->SetValue($i,'login','pass','');
- Attr=cn, to login with the admin user of the LDAP directory, to administer the server.
- Warning: we must ensure it encrypting with https.
In the /etc/php5/apache2/php.ini change the memory limit from 16 to 32 MB:
memory_limit = 32M
The web access will be: http://www.tudominio.com/ldap/