"@trinity-health.org", 'base_dn' => "dc=trinity-health,dc=org", 'domain_controllers' => array ("ldap://addir.trinity-health.org"), 'ad_username' => 'js224113', 'ad_password' => 'pass4tis' ); if ($_POST["oldform"]){ //prevent null bind if ($username!=NULL && $password!=NULL){ //include the class and create a connection include ("adLDAP.php"); $adldap = new adLDAP($options); //authenticate the user if ($adldap -> authenticate($username,$password)){ //establish your session and redirect $failed=0; } } $failed=1; } ?> adLDAP example Please login to continue.
Username:
Password:


Login Failed!

\n"); } ?>
You have successfully logged out."); } ?>