Web app PhpLdapAdmin

PhpLdapAdmin allows to manage the LDAP online.


You need both a LDAP and Web server to use this application.


Source: http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page


apt-get install phpldapadmin
apt-get install php-fpdf


Edit configuration

vim /etc/phpldapadmin/config.php

Edit / adjust following lines:

$config->custom->session['blowfish'] = 'thisIsACrazyStringValueThatIsUsedToEncryptedData';

$servers = new Datastore();
$servers->setValue('server','name','DEV daxiongmao.eu LDAP');
// $servers->setValue('server','port',389);



!! Adjust to your own LDAP settings !!

Reload apache2 configuration

service apache2 reload

Improve security

Alias name

For better security you should not use /phpldapadmin but something else.

Edit configuration file:

vim /etc/phpldapadmin/apache.conf


# Define /phpldapadmin alias, this is the default
<IfModule mod_alias.c>
Alias /phpldapadmin /usr/share/phpldapadmin/htdocs

Replace phpldapadmin by your own value. For instance: ldapmanager

Apache access restrictions

Access service

Then you can access Ldap Account Manager on: http://myServer/phpldapadmin


Login using Admin password

PhpLdapAdmin login

Login user: cn=admin,{ldap DN}

Basic configuration

Create Organizational Units

  • Create a child entry
  • Generic organizational unit [ou=]


    • people
    • groups

Create Groups

Then, create 2 groups called “administrators” & “users”

  • Click on ou=groups
  • Create a child entry
  • Create a generic posix group [cn=]


    • administrators
    • users

Create Users

  • Create some users
  • Click on ou=people
  • Create a child entry
  • Create a generic User Account [ua=]