2013-01-09 61 views
3

我在Windows 2008 Server上安装了PHP 2.4的Apache 2.4。我正在尝试通过Active Directory服务器进行身份验证。我已经在httpd.confApache HTTP Server 2.4 LDAP(Active Directory)身份验证

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 Internal Server Error和error.log中给予以下

[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? 

任何想法,我在做什么错了?

+0

您是否找到任何解决方案/答案?我有同样的情况... – mhesabi

+0

@mhesabi不,我没有找到解决方案/这个答案...我最终放弃Apache(出于其他原因),而是使用IIS。我确信有一个解决方案...继续寻找! :) – HydroPowerDeveloper

回答

2

这解决了这个问题对我来说:

LDAPReferrals Off 

其他提示从herehere聚集:

AuthzLDAPAuthoritative off 
# Use the password without quotes, e.g. password instead of "password" 
AuthLDAPBindPassword password 

然而,这些都不用我说。

相关问题