Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 234311

Summary: faillog / pam_faillog doesn't show all the informations faillog.h
Product: Red Hat Enterprise Linux 4 Reporter: Jose Plans <jplans>
Component: pamAssignee: Tomas Mraz <tmraz>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: pvrabec
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-28 13:41:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 234308, 234310    
Bug Blocks:    
Description Flags
shadow-faillog_short_fail_line.patch none

Description Jose Plans 2007-03-28 13:23:36 UTC
Description of problem:

Bug with two dependancies: 
    * pam: [234308]
    * shadow-utils: [234310]

When using faillog, the IP or hostname information gets truncated with strncpy()
on the 12 first characters due to the sizeof() from its definition.

Used the 52 present in rawhide. This is just part of the problem on write, read
(shadow-utils) need change as well for faillog to read it, since both have the
same header I'm sending a parallel bug blocker of this one against shadow-utils.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Setup a pam stack to use
2. Fail an authentication
3. Check with faillog
Actual results:
fail line truncated.

Expected results:
At least the IP address.

Additional info:
patch from rawhide.

Comment 1 Jose Plans 2007-03-28 13:27:02 UTC
Created attachment 151119 [details]

Comment 2 Jose Plans 2007-03-28 13:28:06 UTC
Created attachment 151120 [details]

Comment 4 Tomas Mraz 2007-03-28 13:41:17 UTC
This cannot be changed due to breaking compatibility with existing faillog files.

The correct way is to backport from RHEL5.

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