LDAP认证apache 2.2错误500

问题描述

| 这是我在Apache2.2.x中的LDAP配置
  Order deny,allow
  AuthType Basic
  AuthName \"Test\"
  AuthBasicProvider ldap
  AuthLDAPURL \"ldap://dc1.domain.com:389/DC=domain,DC=com?sAMAccountName\" NONE
  AuthLDAPBindDN \"CN=Administrator,CN=Users,DC=domain,DC=com\"
  AuthLDAPBindPassword \"secret\"
  authzldapauthoritative Off
  require valid-user
当我加载页面时,我会弹出用户名密码对话框。 但是当我填写它们时,我得到一个内部服务器错误。 如果我查看apache的错误日志,则看不到新错误。 如果我将BindPassword更改为错误,则会在/var/log/apache2/error.log中得到错误 拉我的头发!     

解决方法

尝试在/etc/ldap/ldap.conf中设置\“ REFERRALS off \”。