Debian Squeeze LDAP Server With OpenLDAP And phpLDAPadmin

This tutorial will show you how you can set up an LDAP and webinterface to manage the LDAP server on Debian Squeeze.

phpLDAPadmin url: __ez_fad_position != ‘undefined’){__ez_fad_position(‘div-gpt-ad-howtoforge_com-medrectangle-3-0’)};

See screenshots of phpLDAP admin here:

Server name:

Domain name:
Server IP:

Now we want to make sure the
server is up to date:

apt-get upgrade

First we install slapd and
create a password for administrator:

install slapd

When prompted enter a password
for the administrator of the LDAP server, I choose the password passw0rd
in this example.if(typeof __ez_fad_position != ‘undefined’){__ez_fad_position(‘div-gpt-ad-howtoforge_com-medrectangle-4-0’)};

Now we need to install
ldap-utils and phpLDAPadmin, now apache2 and php will also be installed
because it’s a part of the dependencies for phpLDAPadmin.

install ldap-utils phpldapadmin

Open /etc/ldap/ldap.conf with
your editor, e.g. nano:


and uncomment  BASE and URI and edit so it
looks like this:

# LDAP Defaults

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE dc=example,dc=com
URI ldap://

#DEREF never

If you want to edit domain name
recommend to run following command:


NO and follow the guide, type in your domain, e.g., choose
recommend settings.

Now open

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

Your server is now up and
running, ready to be used. and you should be able to access
phpLDAPadmin on; log in with following
password passw0rd

You should also read this page if you like me have problems creating posix groups + users:

About the Author

Leave a Reply