PHP login script using LDAP, verify group membership

Simple PHP login script that authenticates through Active Directory using LDAP.
Checks user’s membership for two groups, and assigns permissions to a session variable.

authenticate.php

login.php:

Related Post: Use PHP and LDAP to list members of an Active Directory group

Share