SHARE
TWEET

Untitled

a guest Jul 21st, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require_once(dirname(__FILE__) . '/adLDAP.php');
  2. $adldap = new adLDAP();
  3. $username="katie";
  4. $password="mypassword";
  5. $authUser = $adldap->authenticate($username, $password);
  6. if ($authUser == true) {
  7.   echo "User authenticated successfully";
  8. }
  9. else {
  10.   echo "User authentication unsuccessful";
  11. }
  12. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top