环境
系统:CentOS 6.6
软件:phpldapadmin-1.2.3.tgz
phpLDAPadmin安装配置
- 安装
# tar -zxvf phpldapadmin-1.2.3.tgz
# mv phpldapadmin-1.2.3 /data/phpldapadmin
# chown -R apache:apache /data/phpldapadmin
- 配置
# cd /data/phpldapadmin/config
# cp config.php.example config.php
# vim config.php
$config->custom->appearance['language'] = ''; # 删空,语言可变为英文
......
$servers->setValue('server','host','127.0.0.1');
$servers->setValue('server','port',389);
......
$servers->setValue('server','base',array('dc=yourdomain,dc=com'));
......
$servers->setValue('login','auth_type','session');
httpd安装配置
- 安装httpd、php
# yum install httpd php php-bcmath php-gd php-mbstring php-xml php-ldap
- 配置httpd
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost *:80
# vim /etc/httpd/conf.d/phpldapadmin.conf
<VirtualHost *:80>
ServerName phpldapadmin.yourdomain.com
DocumentRoot /data/phpldapadmin
ErrorLog logs/phpldapadmin_error_log
<Directory /data/phpldapadmin>
Options Indexes ExecCGI FollowSymLinks
Order allow,deny
Allow from all
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
- 启动httpd
# /etc/init.d/httpd restart
# chkconfig httpd on
phpLDAPadmin登陆
打开浏览器
访问:http://ip登陆
Login DN:
cn=admin,dc=yourdomain,dc=com
Password:
yourpassword