If LOGIN_RETRIES is set to 3 in /etc/login/defs shadow fails on the third attempt at login, whether the password is correct or not. (This has been the case in all recent versions of shadow, AFAIK.) The situation is confused by the hardwired UNIX_MAX_RETRIES in the Linux-PAM package, pam_unix/support,c, but the attatched patch does actually fix the problem; it isn't caused by PAM. Reproducible: Always Steps to Reproduce: 1. Try to log in twice with a bad password 2. Try to log in with the correct password 3. Fail Actual Results: Failure with an error message from shadow/login.c Expected Results: Success
Created attachment 245727 [details, diff] Patch to shadow/login.c to correct login error count Patch for bug
dont file bugs about old packages. no one cares. *** This bug has been marked as a duplicate of bug 200455 ***