安装phpldapadmin
1. 安装软件
[root@ ~]# yum -y install epel-release
[root@ ~]# yum install -y phpldapadmin
2. 配置phpldapadmin
[root@ ~]# 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> Order Deny,Allow Allow from all </Directory>
[root@ ~]# vi /etc/phpldapadmin/config.php 397 $servers->setValue('login','attr','dn'); 398 //$servers->setValue('login','attr','uid');
[root@ ~]# vim /etc/httpd/conf/httpd.conf 102 #<Directory /> 103 # AllowOverride none 104 # Require all denied 105 #</Directory> 106 <Directory /> 107 Options Indexes FollowSymLinks 108 AllowOverride None 109 </Directory>
[root@ ~]# systemctl restart httpd