I was testing authentication against Active Directory (LDAP) using Apache 2. The following worked for me in a .htaccess file but only after adding:
in the main httpd.conf file. I presume this is related to the server name in the SSL certificate on the Active Directory server.
AuthLDAPBindDN “CN=someuser,OU=some ou,OU=another unit,OU=department,OU=directorate,OU=Administration,OU=another big unit,DC=prefix,DC=tld,DC=co,DC=uk”
Normal users should then be prompted for a username and password to access the directory and if correct credentials are supplied should be given access to the content.