Home → Admin Manual → System Administration → Black Box Authentication (staff login) with Active Directory
These instructions should work with most Active Directory installations, however, minor adjustments may need to be made to fit your exact setup.
//include the class
require_once("adLDAP.php");
function BlackBox($username, $password){
//create the AD LDAP connection
$adldap = new adLDAP();
//authenticate a user
if ($adldap->authenticate($username,$password)){
return true;
}else{
return false;
}
}
|
BlackBox-ADLDAP-sample.php |