环境
系统:CentOS 6.8
软件:ltb-project-self-service-password-1.0.tar.gz
self-service-password安装配置
# tar zxvf ltb-project-self-service-password-1.0.tar.gz
# mv ltb-project-self-service-password-1.0 /data/self-service-password
- 配置
# vim /data/self-service-password/conf/config.inc.php
$ldap_url = "ldap://localhost";
$ldap_starttls = false;
$ldap_binddn = "cn=admin,dc= example,dc=com";
$ldap_bindpw = "password";
$ldap_base = "dc= example,dc=com";
......
$who_change_password = "manager";
php安装
# yum install epel-release
# yum install php php-ldap php-mbstring php-mcrypt
http安装配置
安装
# yum install httpd
配置
# vim /etc/httpd/conf.d/self-service-password.conf
<VirtualHost *:80>
ServerName ssp.example.com
DocumentRoot /data/self-service-password
DirectoryIndex index.php
AddDefaultCharset UTF-8
LogLevel warn
ErrorLog /var/log/httpd/ssp_error.log
CustomLog /var/log/httpd/ssp_access.log combined
</VirtualHost>
- 启动
# /etc/init.d/httpd restart
网友评论