Bug 1128344

Summary: pppd won't log successful peer CHAP authentication
Product: Red Hat Enterprise Linux 7 Reporter: giulioo
Component: pppAssignee: Jaroslav Škarvada <jskarvad>
Status: ASSIGNED --- QA Contact: qe-baseos-daemons
Severity: low Docs Contact:
Priority: low    
Version: 7.0CC: msekleta, thozza
Target Milestone: rcKeywords: FastFix
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
Restore log of successful logins none

Description giulioo 2014-08-09 10:04:30 UTC
Created attachment 925364 [details]
Restore log of successful logins

Description of problem:
 
For a long time pppd has stopped logging successful chap logins from a 'peer'
to pppd itself (ie: pppd used by pptpd as VPN server), while it keeps on
logging failed attempts. I think this is a bug, because at one time (ie RHEL3 or something like that) it did log successful logins and it's useful to look
at the logs and see the usernames of people who accessed the system.
 
Version-Release number of selected component (if applicable):
ppp-2.4.5-33.el7.x86_64
 
How reproducible:
 
Install PPTPD and:
 
- login with wrong password:   username gets logged
Aug  9 10:43:07 linux6 pppd[8392]: Using interface ppp0
Aug  9 10:43:07 linux6 pppd[8392]: Connect: ppp0 <--> /dev/pts/2
Aug  9 10:43:10 linux6 pppd[8392]: Peer abcd failed CHAP authentication  <<===

- login with correct password: no username is logged
Aug  9 10:43:21 linux6 pppd[8403]: Using interface ppp0
Aug  9 10:43:21 linux6 pppd[8403]: Connect: ppp0 <--> /dev/pts/2
Aug  9 10:43:24 linux6 pppd[8403]: MPPE 128-bit stateless compression enabled
Aug  9 10:43:26 linux6 pppd[8403]: local  IP address 10.0.0.1
Aug  9 10:43:26 linux6 pppd[8403]: remote IP address 10.0.0.2
 
Additional info:
I'm attaching a patch which restores the log, I got the patch from here
http://osdir.com/ml/network.poptop/2004-10/msg00085.html
 
Successful login with the patch:
Aug  9 10:58:24 linux6 pppd[8852]: Using interface ppp0
Aug  9 10:58:24 linux6 pppd[8852]: Connect: ppp0 <--> /dev/pts/2
Aug  9 10:58:27 linux6 pppd[8852]: Peer abcd CHAP authentication succeeded  <<==
Aug  9 10:58:27 linux6 pppd[8852]: MPPE 128-bit stateless compression enabled
Aug  9 10:58:28 linux6 pppd[8852]: local  IP address 10.0.0.1
Aug  9 10:58:28 linux6 pppd[8852]: remote IP address 10.0.0.2