0
我有一個使用<Directory>
的LDAP身份驗證,但現在我需要與<Location>
相同的身份。使用LDAP的Apache2身份驗證
工作:
<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>
當我測試它與只允許IP地址1.2.3.4奧德當我嘗試的passwd文件位置的工作,但當我嘗試ldap驗證時,沒有任何事情發生(=瀏覽器顯示頁面)。