500 Internal Server Error with LDAP

Discussion in 'Apache' started by figo2476, Aug 31, 2010.

  1. #1
    Hi All,

    * I have such apache configuration for a site, which uses LDAP to authenticate people:

    
    
    <VirtualHost 111.111.111.111:81>
            ServerAdmin test
            ServerName some.domain.com:81
            DocumentRoot /var/www/test/public_html
    
            <Directory /var/www/test/public_html/>
                    Options All
                    AllowOverride All
    
                    AuthLDAPUrl "ldaps://something.com:636/ou=people,o=org?uid?sub?(&(objectClass=*)(personType=whatever))"
                    AuthName "your password"
                    AuthType Basic
                    AuthBasicProvider ldap
                    Require valid-user
                    AuthzLDAPAuthoritative Off
    
                    order deny,allow
                    deny from all
    
                    Satisfy Any
            </Directory>
    </VirtualHost>
    
    
    Code (markup):

    - When login, it says "500 Internal Server Error", no matter my username & password are correct or not.

    - I use Debian Lenny as server and I set TSL_server never in ldap.conf for testing purpose. (Because it queries ldaps://.......). It is still not working.

    - Do you think if I install the certificate, then it will work? Or is there anything wrong inside the <Directory>?
     
    figo2476, Aug 31, 2010 IP