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: http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page

Screenshots of phpLDAPadmin: http://sourceforge.net/projects/phpldapadmin/

Server name: ldap.example.com
Domain name: example.com
Server IP: 192.168.0.2

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. example.com choose recommended settings
  8. Open /etc/phpldapadmin/config.php

$servers = new Datastore();
$servers->newServer(‘ldap_pla’);
$servers->setValue(‘server’,’name’,’My LDAP Server’);
$servers->setValue(‘server’,’name’,’My LDAP Server’);
$servers->setValue(‘server’,’port’,389);
$servers->setValue(‘server’,’base’,array(‘dc=example,dc=com’));
$servers->setValue(‘login’,’bind_id’,’cn=admin,dc=example,dc=com’);

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

http://wiki.debian.org/PhpLdapAdmin

 

 

Leave a Reply

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

Time limit is exhausted. Please reload CAPTCHA.