我已经在Windows 2008服务器上安装了Apache 2.4和PHP 5.4。我正试图对Active Directory服务器进行身份验证。我已经在httpd.conf中取消注释了以下内容。
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule ldap_module modules/mod_ldap.so
我创建了以下别名:
Alias /Website "C:/Web/Aliases/Website"
<Location /Website>
# Using this to bind
AuthLDAPBindDN "CN=John Doe,OU=Accounts,OU=CA,OU=Country,OU=Company Name,DC=com"
AuthLDAPBindPassword "mypassword"
# search user
AuthLDAPURL "ldap://myserver/OU=Country,OU=Company,DC=com?poibri02?sub?(objectClass=*)"
AuthType Basic
AuthName "USE YOUR WINDOWS ACCOUNT"
AuthBasicProvider ldap
require valid-user
</Location>
然而,当我尝试访问该网站时,我收到一个"500内部服务器错误",错误日志显示如下:
[Wed Jan 09 12:05:28.614839 2013] [ldap:error] [pid 3904:tid 1064] (70023)This function has not been implemented on this platform: AH01277: LDAP: Unable to add rebind cross reference entry. Out of memory?
有任何想法我到底做错了什么吗?