Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is my LDAP configuration in Apache2.2.x

  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

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

2 Answers 2

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://dc1.domain.com:389/DC=domain,DC=com?sAMAccountName
            require valid-user
        </Location>
share|improve this answer

Your Answer

 
discard

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.