2015-09-28 98 views
0

我使用Adldap與AUTH在PHP登錄,但它給了錯誤: 無法聯繫LDAP服務器。無法聯繫LDAP服務器

<?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"; 
}?> 

回答