Hi Bartek,
On 04.11.20 08:08,
prez...@gmail.com wrote:
> I'm facing strange behavior, some users report they cannot login to
> devices but "from time to time". In the log I can see only message
> "Exceed password retry limit. Account locked. (448). Authentication
> backed failure.", but as far I as know the password is correct and the
> ldaps serves should be available.
The "Exceed password retry limit. Account locked." part comes from your
LDAP backend. 448 is the line number in the
mavis_tacplus_ldap.pl where
the error is logged.
$mesg = $ldap->bind($authdn, password => $V[AV_A_PASSWORD]);
if ($mesg->code) {
$V[AV_A_USER_RESPONSE] = $mesg->error . " (" . __LINE__
. ")";
goto fail if $mesg->code == LDAP_INVALID_CREDENTIALS;
goto fatal;
}
Handling this "account locked" error message (I think this is
LDAP_CONSTRAINT_VIOLATION) just like LDAP_INVALID_CREDENTIALS could be a
good idea here (even if I think that returning LDAP_CONSTRAINT_VIOLATION
in bind() context is illegal). I'll issue an update later today.
Cheers,
Marc