Installing phpLDAPadmin after setting up a LDAP Server

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).
  7. Place phpldapadmin folder in /var/www.
  8. Now it’s time to fire up your web browser and head to your installation. Point your browser to http://ADDRESS_TO_SERVER/phpldapadmin/  .For example: http://priyanka.com/phpldapadmin
  9. 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=priyanka,dc=com
  10. Here is logged in screen:

phpLDAPadmin Logged IN Page

Thats all. 🙂

Advertisements

About Priyanka Kapoor

Simple, Hardworking & friendly.....
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s