Install phpLDAPadmin to Manage LDAP with a Web Interface

June 20, 2013

Table of Contents

We are going to learn how to administer LDAP using the web interface though you can do that using the command line.phpLDAPadmin provides this functionality thus we are going to install it to help us remove some of the friction of learning the LDAP tools.

You can install the phpLDAPadmin package by typing:

sudo apt-get install phpldapadmin

This installs the administrator interface, enable the necessary Apache virtual hosts files ,and reload Apache.

Configure phpLDAPadmin

We are going to configure some things so that it can connect with the LDAP directory structure that was created during the OpenLDAP configuration stage. Start by opening the main configuration file with root privileges in your text editor.

sudo nano /etc/phpldapadmin/config.php

You will have to add the configuration details that you set up for your  LDAP server. Begin by looking for the host parameter and setting it to your server’s domain name or public IP address. This parameter should reflect the way you plan on accessing the web interface:


Then you have to configure the domain name you selected for your LDAP server. In our example we chose so  have to translate this into LDAP syntax by replacing each domain component into the value of a dc specification except the dot.

It just shows that instead of writing, you will write something like dc=test,dc=com. you should find the parameter that sets the server base parameter and use the format you just discussed to reference the domain you  decided on as an example:


You have to adjust this same thing in our login bind_id parameter. The cn parameter is already set as “admin”. This is correct. You  just need to adjust the dc portions again, just as you did previously:


Lastly you need to adjust a setting that controls the visibility of warning messages. By default phpLDAPadmin have some annoying warning messages in its web interface about the template files that have no impact on the functionality, you can hide these by searching for the hide_template_warning parameter, removing the comments from the line, and setting it to “true”:

$config->custom->appearance[‘hide_template_warning’] = true;

Save and close the file when you have completed this process.


Share on
More posts

Dedicated Servers Quick Guide

What is a Dedicated Servers? Why bother using a dedicated server over a VPS or Shared Hosting?A dedicated server is a server 100% dedicated to your website/project or business needs.

vSphere 5.1 New Storage Features

VMFS File Sharing Limits In previous versions of vSphere, the maximum number of hosts which could share a read-only file on a VMFS volume was 8. The primary use case

Get 90% Discount

First 3 People gets the Bonus!
Don't Miss Out Our Big Sale

Get 0-90% On All
247Rack Services


The Sale Is Until The End Of March