Active directory Apache HTTP服务器2.4 LDAP(Active Directory)身份验证

Active directory Apache HTTP服务器2.4 LDAP(Active Directory)身份验证,active-directory,apache2,Active Directory,Apache2,我已经在Windows2008服务器上安装了Apache2.4和PHP5.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" <Lo

我已经在Windows2008服务器上安装了Apache2.4和PHP5.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>

你知道我做错了什么吗?

这为我解决了这个问题:

LDAPReferrals Off
从和收集的其他提示:


但是,这些对我来说是不必要的。

您找到了解决方案/答案吗?我也有同样的情况…@mhesabi不,我没有找到解决方案/答案…我最终放弃了Apache(出于其他原因),转而使用IIS。我确信有一个解决方案……继续寻找!:)ldapreferralsoff也解决了我的Apache2.4中的问题,但我需要知道为什么会发生这种情况。
LDAPReferrals Off
AuthzLDAPAuthoritative off
# Use the password without quotes, e.g. password instead of "password"
AuthLDAPBindPassword password