Apache2 Conf for ldap connection

I have a pretty simple website running on a separate Debian server. Currently, I’m using the following configuration:

<Directory "/var/www/html">
    AuthType Basic
    AuthName "Restricted Content"
    AuthUserFile /etc/apache2/.htpasswd
    Require valid-user

Now, this works fine if I want to manually add users to the .htpasswd file. But I’d like to explore the idea of adding users in UCS and having them authenticate at the site using their credentials. I have read about authnz_ldap and I feel like that should work. I’ve taken a couple of stabs at the problem, but I haven’t been able to authenticate properly.

Moreover, and frustratingly, /var/log/apache2/error.log is pretty sparse when the site returns 500.

What is the method for connecting authnz_ldap to ucs?


please have a look at Cool Solution: Connect Apache to the LDAP.

Best regards