我正尝试在Apache上运行的网站上使用Active Directory用户进行身份validation。
我的设置
活动目录:用户“steven”是“员工”组的成员。 用户“cindy”是属于“职员”(= cindy是“职员”组的一个子组)成员的“财务”组的成员。
Apache: Apache 2.4与mod_authnz_ldap
我的Apache网站configuration:
AuthName "Please enter your login data." AuthType Basic AuthBasicProvider ldap AuthLDAPBindDN [email protected] AuthLDAPBindPassword "userpassword" AuthLDAPURL "ldap://dc.domain.local/DC=domain,DC=local?sAMAccountName?sub?(objectClass=*)" Require ldap-group CN=Staff,OU=Groups,OU=Accounts,DC=domain,DC=local
问题
Steven(或其他任何可能是“staff”组的直接成员的用户)authentication成功,但是cindy等子组的成员将不会进行authentication。
我已经尝试添加“AuthLDAPMaxSubGroupDepth 10”(10无论如何应该是默认值),但这也没有帮助。
任何人可能会帮助?
我没有机会使用AuthLDAPMaxSubGroupDepth指令。 我一直使用LDAP_MATCHING_RULE_IN_CHAINsearch控制。 你可能会看看这个。 就DC和Apache之间的networkingstream量而言,它应该performance得更好,因为DC本身会parsing嵌套组。