I am Using Adldap to Auth login in php But it gives error: Can't contact LDAP server.
<?php
require_once('src/adLDAP.php');
$adldap = new adLDAP();
$authUser = $adldap->user()->authenticate('AliNasiri', '******');
if ($authUser == true) {
echo "User authenticated successfully";
}
else {
echo $adldap->getLastError()."<br>";
echo "User authentication unsuccessful";
}?>