Manage your LDAP data with phpLDAPadmin - gHacks Tech News

Manage your LDAP data with phpLDAPadmin

The search for the perfect LDAP management tool has brought me around to a tool that is very similar to that of phpMyAdmin (for coverage of this tool, see my article "Install phpmyadmin for easy MySQL administration"). Both of these tools are web-based administration tools for tasks that many find too complex to do via command line.

Naturally, what is nice about phpldapadmin is that it allows you to manage your LDAP server from anywhere you have access to a browser (so long as your LDAP server can be reached form anywhere. In this article I am going to show you how to install, configure, and begin to use the phpldapadmin tool.

Installation

Before you install phpLDAPAdmin (also known as PLA), you will need to have your LDAP server up and running. Once that is achieved you can then proceed with your installation of this management tool. You will also need to have a web server installed and running (it is a web-based tool after all).  If you do not already have php5-ldap installed, install that package now.

The first step for installation is to download the source from Sourceforge. You can install from a pre-compiled binary, but I recommend you do the installation from source.

Once you have the .tgz file downloaded move that file to your web servers' document root. In Fedora this will be /var/www/html and in Ubuntu this will be /var/www. The next step is to unpack the tar file and then rename the newly created directory. You will need administrative privileges for these tasks. Follow these steps:

  1. Open up a terminal window.
  2. Change to your document root.
  3. Su to root (if using Fedora or a Fedora-like distribution).
  4. Issue the command tar xvfz phpldapadmin-XXX.tgz (If using a Ubuntu-like distribution you will have to add sudo to the beginning of that command) Where XXX is the release number.
  5. Rename the directory with the command mv phpldapadmin-XXX phpldapadmin (If using Ubuntu-like distribution you will have to add sudo to the beginning of that command) Where XXX is the release number.
  6. Change into the phpldapadmin/config and rename the config file with the command mv config.php.sample config.php (If using Ubuntu-like distribution you will have to add sudo to the beginning of that command).

Now it's time to fire up your web browser and head to your installation. Point your browser to http://ADDRESS_TO_SERVER/phpldapadmin/ and you will see a page similar to that in Figure 1.

The first thing you need to do is click on the Login link (in the left navigation tree). The credentials you need will be those that were created to administer your LDAP server. But don't think you can just log in with a username of "admin" and a password. You have to use the standard format of LDAP. So a typical administrator login username will look like cn=admin,dc=wallen,dc=local.

Once you have logged in, the main page will look like that shown in Figure 2. Expand the navigation tree on the left nav and you can see where you can start creating new entries.

Final thoughts

You are now ready to rock your LDAP server from anywhere you can access a web browser. The phpLDAPAdmin tool makes LDAP as easy as phpMyAdmin makes MySQL. This is one of the best LDAP admin tools you will find.

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

    Leave a Reply

    Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

    Please note that your comment may not appear immediately after you post it.