Developers Documentation

×

Warning

0 error for file:https://clearos.com/dokuwiki2/lib/exe/css.php?t=dokuwiki&tseed=82873f9c9a1f5784b951644363f20ef8

User Tools

Site Tools


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

https://clearos.com/dokuwiki2/lib/exe/indexer.php?id=content%3Aen_us%3Akb_phpldapadmin&1568771153