content:en_us:kb_phpldapadmin

Installing and configuring phpLDAPadmin

phpLDAPadmin can be a useful tool for browsing and editing (be careful!) the LDAP database.

<note warning>It can be very easy to mess up your LDAP database by editing it. You have been warned.</note>

Installing

From the command line do a:

yum install phpldapadmin

Configuring the web server

In /etc/httpd/conf.d/phpldapadmin.conf change the restrictions to allow access from your LAN or desire IP addresses. ClearOS uses Apache 2.4 so change:

Require local

to something like

Require ip 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8

<note>This allows all private IP's. You may want to restrict it a lot further</note>

Configuring phpLDAPadmin

You need to make the following edits to /etc/phpldapadmin/config.php:

server host

Optional:

// $servers->setValue('server','host','127.0.0.1');

to

$servers->setValue('server','host','127.0.0.1')

login attr

$servers->setValue('login','attr','uid');

to

// $servers->setValue('login','attr','uid');

Logging into phpLDAPadmin

Navigate to:

https://your_ClearOS_LAN_IP/phpldapadmin

When you log into phpLDAPadmin use the Bind DN and Bind Password from the Webconfig Directory Server page, or you can get the values from the command:

php /var/clearos/openldap/config.php

search?q=clearos%2C%20phpldapadmin%2C%20ldap%2C%20kb%2C%20howto%2C%20maintainer_nhowitt&amp;btnI=lucky

content/en_us/kb_phpldapadmin.txt · Last modified: 2019/07/24 11:15 by NickH

Page Tools