Ubuntu – LDAP authentication apache 2.2 error 500

apache-2.2authenticationldapUbuntu

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 and 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!