【发布时间】:2014-12-05 13:32:30
【问题描述】:
我有一个使用 <Directory> 的有效 LDAP 身份验证,但现在我需要使用 <Location> 进行相同的身份验证。
工作:
<Directory /home/foo-bar/>
DAV on
AuthType Basic
AuthName "foo bar"
AuthBasicProvider ldap
AuthLDAPUrl ldap://www.foo.bar
AuthLDAPBindDN cn=admin,dc=bar
AuthLDAPBindPassword foo
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require valid-user
</Directory>
什么都不做:
<Location /foo-bar/>
DAV on
AuthType Basic
AuthName "foo bar"
AuthBasicProvider ldap
AuthLDAPUrl ldap://www.foo.bar
AuthLDAPBindDN cn=admin,dc=bar
AuthLDAPBindPassword foo
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require valid-user
</Location>
当我尝试使用 passwd 文件时仅允许 ip 地址 1.2.3.4 oder 测试该位置时该位置有效,但当我尝试 ldap 身份验证时没有任何反应(= 浏览器显示页面)。
【问题讨论】: