If we are integrating applications on an LDAP (in our case on a OpenLDAP), we have probably seen the utility to obtain the users belonging to one group even LDAP query, because we want to integrate the application supports only a single query.
Also if we documentation on this subject we have found stuff like, “for users belonging to the group grp_test run the query”.
The most basic authentication can be configured on a Apache is access by file, but in this post we will see how to configure Apache to authenticate users against an LDAP.
The advantages are obvious, we can use a centralized authentication LDAP directory, either to validate us in applications or to access the web services of the company.
For the examples we have used a Ubuntu 12.04 and Apache 2.2, the first thing we have to do is install the necessary Apache modules and activate them:
sudo aptitude install libapache2-mod-ldap-userdir
sudo a2enmod authnz_ldap