Here is my code
if ($bind) {
$_SESSION['user'] = $username['username'];
header("Location: /Login/Homepage.php");
//@ldap_close($ldap);
}else {
$errMSG = "Wrong Credentials, Try again...";
}
can you please help me what to add in my code to only let users from a specific group (cn) to access the homepage. thanks!