阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

CentOS 为Apache 使用LDAP 身份验证

136次阅读
没有评论

共计 651 个字符,预计需要花费 2 分钟才能阅读完成。

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>
 

推荐阅读:

RedHat6 下构建 LDAP 服务 http://www.linuxidc.com/Linux/2013-05/84741.htm

Linux 使用 pam_LDAP 通过 ad 域认证 http://www.linuxidc.com/Linux/2012-09/71043.htm

Zimbra 故障——Unable to determine enabled services from LDAP http://www.linuxidc.com/Linux/2012-07/66869.htm

正文完
星哥说事-微信公众号
post-qrcode
 0
星锅
版权声明:本站原创文章,由 星锅 于2022-01-20发表,共计651字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中