Configuring phpldapadmin for managing LDAP server

Introduction


We can manage LDAP server using phpldapadmin which is web base utility to manage LDAP server. It's very time consuming and hard to manage LDAP server through command line. With the help of phpldap admin you can easily manage LDAP server through your web browser.
Also, you can check How to configure LDAP server in my previous post.


1) Installing required packages:

~]# yum install -y httpd php php-mbstring epel-release
We will require http service and php to run phpldap admin so we are installing both of this and phpldapadmin package is not included in default yum repository so we are installing epel repository.


~]# yum install -y phpldapadmin
2) Configuration:

There are two main configuration files of phpldap admin. First we are going to make changes in phpldapadmin.conf to allow over network for accessing LDAP server through phpldapadmin.


As shown in screen above add your network of IP in the field of Require ip section.

Second file which we are going to modify is /etc/phpldapadmin/config.php. In this file go to line 397 and uncomment this line and comment line 398 as bellow screen:





Now start and enable httpd service.

3) Login into phpldapadmin :

To login into phpldapadmin go to browser and type : http://serverip/phpldapadmin you will see login screen as per bellow screen click on login: 


After click on login you will ask for LDAP credentials enter LDAP credentials as bellow screen:


Click on Authenticate and you are ready to go for server configuration through web base utility.



In the above screen you can see my ldap server configuration. You can add, delete, modify ldap entries through phpldapadmin.













Comments