Bug 894191

Summary: Logwatch doesn't proper ignore "password check failed for user"
Product: Red Hat Enterprise Linux 6 Reporter: Robert Scheck <redhat-bugzilla>
Component: logwatchAssignee: Jan Synacek <jsynacek>
Status: CLOSED ERRATA QA Contact: Ondrej Hudlicky <ohudlick>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: ayadav, ovasik, robert.scheck
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 894272 (view as bug list) Environment:
Last Closed: 2013-09-10 13:40:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
[Patch] handle usernames correctly none

Description Robert Scheck 2013-01-11 00:06:19 UTC
Description of problem:
/usr/share/logwatch/scripts/services/secure:212 is currently:

  ( $ThisLine =~ /password check failed for user \([a-zA-Z]*\)/) or

Unfortunately this does not match our (system) users, which are "customer_01"
or "example_02" (of course without the "").

Version-Release number of selected component (if applicable):
logwatch-7.3.6-50.el6.noarch

How reproducible:
Everytime, see above and below.
  
Actual results:
Logwatch doesn't proper ignore "password check failed for user"

Expected results:
From my point of view, a proper fix for this could be:

  ( $ThisLine =~ /password check failed for user \(\S*\)/) or

Comment 2 Jan Synacek 2013-01-14 13:39:16 UTC
Created attachment 678234 [details]
[Patch] handle usernames correctly

Comment 3 Robert Scheck 2013-01-18 10:08:38 UTC
Patch looks basically fine to me, if manually applied

Comment 11 errata-xmlrpc 2013-09-10 13:40:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1247.html