使用 LDAP 和 Apache 2.4 对用户进行身份验证

3 ldap .htaccess apache-2.4

我想使用 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 对用户进行身份验证?

Ger*_*der 6

这为我解决了这个问题:

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)

然而,这些对我来说并不是必需的。