Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is my LDAP configuration in Apache2.2.x

  Order deny,allow
  AuthType Basic
  AuthName "Test"
  AuthBasicProvider ldap
  AuthLDAPURL "ldap://,DC=com?sAMAccountName" NONE
  AuthLDAPBindDN "CN=Administrator,CN=Users,DC=domain,DC=com"
  AuthLDAPBindPassword "secret"
  authzldapauthoritative Off
  require valid-user

When i load the page i get the pop up for password en username. But when i fill them in i get an internal server error.

If i look in the error log of apache is see no new errors. If i change my BindPassword to something wrong i get errors in my /var/log/apache2/error.log

Pulling my hair out!

share|improve this question
Are you trying to load a simple page? What if there's a CGI script / webapp that would give HTTP 500 even if the authentication works? – ptman May 26 '11 at 8:58

The only you need:

        <Location /> <!-- you can change the location if you want -->
            AuthType basic
            AuthName "Your popup title"
            AuthBasicProvider ldap
            AuthzLDAPAuthoritative off
            AuthLDAPURL ldap://,DC=com?sAMAccountName
            require valid-user
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.