Linux logo

This tutorial will show you how you can set up an LDAP and web interface to manage LDAP (Active Directory) server on Debian (Squeeze).

phpLDAPadmin url:

Screenshots of phpLDAPadmin:

Server name:
Domain name:
Server IP:

Run commands without the “#” for them to work!

  1. Make sure the server is up to date (configure correct sources before updating)
    1. # apt-get update
    2. # apt-get upgrade
  2. Install slapd and create a password for the administrator
    1. # apt-get install slapd
      1. When prompted, enter a password for the administrator of the LDAP server, I choose the password “passw0rd” in this example
  3. Install ldap-utils and phpLDAPadmin
    1. # apt-get install ldap-utils phpldapadmin
  4. Open /etc/ldap/ldap.conf with an editor such as vi or nano and
    1. # vi /etc/ldap/ldap.conf
  5. Uncomment BASE and URI so edit so it looks like this ldap
  6. If you want to edit the domain name I recommend running the following command
    1. # dpkg-reconfigure slapd
  7. Select NO and follow the guide, type in your domain. eg. choose recommended settings
  8. Open /etc/phpldapadmin/config.php

$servers = new Datastore();
$servers->setValue(‘server’,’name’,’My LDAP Server’);
$servers->setValue(‘server’,’name’,’My LDAP Server’);

If you followed the instructions correctly you will now have phpLDAPadmin, browse to http://yourservernameorip/phpLDAPadmin and log in using the password you specified at step 2.

You should also read this page if you have problems creating pisix groups + users



Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.