I want only a (faculty) group of users to be able to access a certain web page on my website.
This page is only meant to be seen by faculty.
Within active directory, we have a group called "faculty"
Here is a snippet of code I have to authenticate users via ldap/active directory, but I want to only authenicate users that are within the faculty group.
$ldap = ldap_connect("ldap.domain.com")
if($bind = ldap_bind($ldap, $_POST['username'], $_POST['password'])) {
// log them in!
} else {
// error message
}