Apache-2.4.x ldap认证

官方网站:


环境:
CentOS 7
apache-2.4
openldap-2.4.44



一.安装apache及ldap模块
yum -y install httpd mod_ldap


二.配置ldap认证
vi /etc/httpd/conf.d/ldap.conf
Apache-2.4.x ldap认证
这里直接借用官方示例,其它认证选项请查看官方文档

Require ldap-user bjenson fuser jmanager

Require ldap-group cn=Administrators, o=Example

Require ldap-dn cn=Barbara Jenson, o=Example

Require ldap-attribute city="San Jose" "status=active"

Require ldap-filter "&(cell=*)(department=marketing)"

三.认证效果
Apache-2.4.x ldap认证

Apache-2.4.x ldap认证




相关文章:

  • 2022-12-23
  • 2021-10-10
  • 2021-12-25
  • 2021-10-26
  • 2021-08-20
  • 2021-11-01
  • 2021-11-18
  • 2021-07-22
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-09-01
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案