我想使用 Apache 2.4 设置 LDAP 身份验证。LDAP 服务器是 Windows 2008。
我的.htaccess看起来像:
AuthType Basic
AuthName "Login"
AuthBasicProvider ldap
AuthLDAPBindDN "CN=user,OU=Dienstkonten,DC=company,DC=lan"
AuthLDAPBindPassword "pwd"
AuthLDAPURL "ldap://dc.company.lan/DC=company,DC=lan?sAMAccountName?sub?(objectClass=*)" NONE
require ldap-group CN=Login-Group,OU=Dienstkonten,DC=company,DC=lan
Run Code Online (Sandbox Code Playgroud)
但我总是收到错误:
(70023)This function has not been implemented on this platform: AH01277: LDAP: Unable to add rebind cross reference entry. Out of memory?
Run Code Online (Sandbox Code Playgroud)
我做错了什么?如何使用 ldap 和 apache 2.4 对用户进行身份验证?
这为我解决了这个问题:
LDAPReferrals Off
Run Code Online (Sandbox Code Playgroud)
AuthzLDAPAuthoritative off
# Use the password without quotes, e.g. password instead of "password"
AuthLDAPBindPassword password
Run Code Online (Sandbox Code Playgroud)
然而,这些对我来说并不是必需的。
| 归档时间: |
|
| 查看次数: |
13613 次 |
| 最近记录: |