Installing and configuring phpLDAPadmin
phpLDAPadmin can be a useful tool for browsing and editing (be careful!) the LDAP database.
It can be very easy to mess up your LDAP database by editing it. You have been warned.
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
This allows all private IP's. You may want to restrict it a lot further
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
content/en_us/kb_phpldapadmin.txt · Last modified: 2019/07/24 05:15 by NickH