phpLDAPadmin with OpenDJ 2.4.5

phpLDAPadmin logoLooks like phpLDAPadmin works with OpenDJ out of the box. All I needed to change to get started was to replace port 389 with 1389. (I installed OpenDJ as my normal user.)

The following instructions worked for me on Ubuntu 12.04.

  1. Install phpLDAPadmin.
    Ubuntu for example has a phpldapadmin package.

    $ sudo apt-get install phpldapadmin
  2. Install Java.
    Ubuntu has an openjdk-6-jre package.

    $ sudo apt-get install openjdk-6-jre
  3. Install OpenDJ. Here’s how to start with 2.4.5 for example.
    $ cd Downloads/
    $ wget
    $ cd /path/to/
    $ unzip ~/Downloads/
    $ ./OpenDJ-2.4.5/setup
  4. Edit the configuration if necessary.
    $ sudo vi /etc/phpldapadmin/config.php

    For example, if OpenDJ listens on port 1389, change the server port setting to:


    You can make a number of other changes in the configuration file. For details, see

  5. Open phpLDAPadmin, login, and start to manage OpenDJ.
    phpLDAPadmin console

One thought on “phpLDAPadmin with OpenDJ 2.4.5

  1. Here is a howto installing phpLDAPadmin in a EC2 Amazon Linux AMI instance (CentOS).

    # from a clean image, update and install the following packages.
    sudo yum -y update
    sudo yum -y install httpd
    sudo yum -y install php
    sudo yum -y install php-ldap
    sudo yum -y –enablerepo=epel install phpldapadmin
    sudo /sbin/chkconfig httpd on

    Update the phpldapadmin.conf and set the access level you prefer
    sudo nano /etc/httpd/conf.d/phpldapadmin.conf

    # Order Deny,Allow
    # Deny from all
    # Allow from
    # Allow from ::1
    Allow from all

    # Update the default phpLDAPadmin port to match the default OpenDJ port
    sudo nano /usr/share/phpldapadmin/config/config.php

    # Change the following line, where the default port is defined to the default OpenDJ port (search in nano by using ctrl-w).
    // $servers->setValue(‘server’,’port’,389);

    # Also change how user should authenticate themselves to phpLDAPadmin
    Comment the following line:
    // $servers->setValue(‘login’,’attr’,’dn’);

    # Restart the apache httpd deamon
    sudo service httpd restart

    Assuming OpenDJ is default installed as described above.

Leave a Reply

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

You are commenting using your 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