Centos 为Aapche 使用LDAP 身份验证
Apache 中可以通过mod_authz_ldap 模块为LDAP 提供了良好的的支持。(1) 安装Aache 支持LDAP 身份验证的模块#yum –y install mod_authz_ldap(2) 编辑/etc/httpd/conf.d/authz_ladp.conf 文件,在<IFModule mod_authz_ldap.c>语句下增加一下内容(假设:/var/phpmyadmin 目录存放的网站使用LDAP身份验证)。
<Directory/var/phpmyadmin>
AuthzLDAPServer 192.168.2.100
AuthzLDAPUserBase ou=People,dc=example,dc=com
AuthzLDAPUserKey uid
AuthzLDAPUserScope base
AuthType basic
AuthName “This is Test LDAP Auth”
Require valid-user
</Directory>
解释就系掩饰,掩饰等于无出色,无出色不如回家休息!!! 爱——不是想出来的,爱——是做出来的!! 为中华而努力读书!一包中华好多钱啊~~~ 锻炼肌肉,防止挨揍! 勿以坑小而不灌,勿以坑大而灌之。 长得真有创意,活得真有勇气!
页:
[1]