Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 335654

Summary: sys-apps/shadow-4.1.2.2 counts failed logins wrongly
Product: Gentoo Linux Reporter: C W Rose <cwr>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to shadow/login.c to correct login error count

Description C W Rose 2010-09-02 07:49:19 UTC
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
Comment 1 C W Rose 2010-09-02 07:51:46 UTC
Created attachment 245727 [details, diff]
Patch to shadow/login.c to correct login error count

Patch for bug
Comment 2 SpanKY gentoo-dev 2010-09-06 20:05:17 UTC
dont file bugs about old packages.  no one cares.

*** This bug has been marked as a duplicate of bug 200455 ***