yum -y install php php-mbstring php-pear
yum -y install epel-release
yum –enablerepo=epel -y install phpldapadmin

 

vi /etc/phpldapadmin/config.php
$servers->setValue(‘login’,’attr’,’dn’);
//$servers->setValue(‘login’,’attr’,’uid’);

vi /etc/php.ini
date.timezone = Europe/Zurich

vi /var/www/html/index.php
<html>
<body>
<div style=”width: 100%; font-size: 40px; font-weight: bold; text-align: center;”>
<?php
print Date(“Y/m/d”);
?>
</div>
</body>
</html>

 

vi /etc/httpd/conf/httpd.conf
Listen 8080
vi /etc/httpd/conf.d/phpldapadmin.conf
#
#  Web-based tool for managing LDAP servers
#
Alias /phpldapadmin /usr/share/phpldapadmin/htdocs
Alias /ldapadmin /usr/share/phpldapadmin/htdocs
<Directory /usr/share/phpldapadmin/htdocs>
<IfModule mod_authz_core.c>
# Apache 2.4
Require local
Require ip 10.0.1.0/24
</IfModule>
</Directory>

 

httpd start | stop | restart

systemctl start httpd
systemctl enable httpd

systemctl restart httpd

 

Version
/usr/sbin/slapd -V

 

slapd start | stop | restart

systemctl start slapd
systemctl enable slapd

http://www.server-world.info/en/note?os=CentOS_7&p=openldap&f=1