Bug 757

Summary: AutoPPP dialed-in user shows up as a_ppp
Product: [Retired] Red Hat Linux Reporter: Daniel Senie <dts>
Component: mgettyAssignee: Cristian Gafton <gafton>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2CC: ink
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-04-10 03:34:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Daniel Senie 1999-01-09 14:29:59 UTC
With RHL 4.2, a user dialed in with AutoPPP and PAP
authentication showed in a "who" display as the user who
successfully logged in.

With RHL 5.2, the who display shows "a_ppp" instead.

This was noticed in converting a box which supports dialup
using Cyclades cards. I upgraded from 4.2 to 5.2 and a
number of problems cropped up, this was one.

Comment 1 ink 1999-04-06 14:24:59 UTC
Actually it's PAM bug. It's very unpleasant because it makes
users accounting impossible on dial-in server.

pppd-2.3.5 relies on the PAM modules for wtmp handling;
on other hand, look at quote from pam_lastlog docs:

  Overview of

   This session module maintains the /var/log/wtmp file. Adding an
   entry when called via the pam_open_seesion() function and
   it when pam_close_session() is called.

But this functionality is missing.
So I think the right solution is adding utmp/wtmp stuff to the lastlog
module according its docs, and adding following line to /etc/pam.d/ppp
in the
case of dial-in server:

session    required     pam_lastlog.so

Patch for pam_lastlog follows (I used it successfully last 3 months).

Comment 2 Cristian Gafton 1999-04-10 03:34:59 UTC
fixed in ppp-2.3.7-1 and later source rpms.