I'm writing an application that checks via the adLdap library if the user is logged in.
But the problem is that when the user enters the wrong password, after the 4th time it will lock his account. Is there anything i can do about it? Or is this the way LDAP is working?
Here is the code i'm using:
public static function checkLogin ($username, $password) {
$ldap = new adLDAP();
if ($ldap->authenticate($username, $password)) {
return true;
}
return false;
}