First, enable LDAP related apache modules.
sudo a2enmod ldap authnz-ldap
Next, edit /etc/apache2/apache2.conf to add the following:
<directory>
AuthType Basic
AuthName "This site is for SRG members only. Please use your SRG NetId credentials to access this site."
AuthBasicProvider ldap
#AuthzLDAPAuthoritative on
AuthLDAPURL "ldap://[your ldap server ip addess]:389/dc=srg,dc=ics,dc=uplb,dc=edu,dc=ph?uid"
AuthLDAPBindDN "cn=admin,dc=srg,dc=ics,dc=uplb,dc=edu,dc=ph"
AuthLDAPBindPassword [your admin password]
Require valid-user
</directory>
Finally, restart apache.
sudo service restart apache2
No comments:
Post a Comment