这是我在Apache2.2.x中的LDAPconfiguration
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
当我加载页面,我popup密码和用户名。 但是当我填写他们时,我得到一个内部服务器错误。
如果我在Apache的错误日志中看到没有新的错误。 如果我将BindPassword更改为某些错误,则会在我的/var/log/apache2/error.log中收到错误
把我的头发拉出来!
我的问题是港口需要3268。
只有你需要:
<Location /> <!-- you can change the location if you want --> AuthType basic AuthName "Your popup title" AuthBasicProvider ldap AuthzLDAPAuthoritative off AuthLDAPURL ldap://dc1.domain.com:389/DC=domain,DC=com?sAMAccountName require valid-user </Location>