From tedm@portsoft.com  Sun Aug  3 17:27:47 1997
Received: from mail.portsoft.com (mail.portsoft.com [206.103.54.61])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA29315
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 3 Aug 1997 17:27:47 -0700 (PDT)
Received: from www2.portsoft.com (www2.portsoft.com [192.168.1.77])
	by mail.portsoft.com (8.8.5/8.8.5) with ESMTP id RAA24864
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 3 Aug 1997 17:32:26 -0700 (PDT)
Received: (from root@localhost)
	by www2.portsoft.com (8.8.5/8.8.5) id RAA08323;
	Sun, 3 Aug 1997 17:24:43 -0700 (PDT)
Message-Id: <199708040024.RAA08323@www2.portsoft.com>
Date: Sun, 3 Aug 1997 17:24:43 -0700 (PDT)
From: Ted Mittelstaedt the Almighty System Admin <tedm@toybox.placo.com>
Reply-To: tedm@toybox.placo.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Kernel mode PPP doesen't update wtmp file properly on logout
X-Send-Pr-Version: 3.2

>Number:         4221
>Category:       kern
>Synopsis:       Kernel mode pppd doesen't update wtmp on logout
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brian
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug  3 17:30:01 PDT 1997
>Closed-Date:    Tue Aug 10 06:47:11 PDT 1999
>Last-Modified:  Tue Aug 10 06:48:39 PDT 1999
>Originator:     Ted Mittelstaedt the Almighty System Admin
>Release:        FreeBSD 2.2.2-RELEASE i386
>Organization:
Portland Software 
>Environment:

Pentium 90 running FreeBSD, with 3 modems, on com1 through com4, serving as
a PPP dialup server for a number of Win95 and such clients

	

>Description:

pppd is set up with the "persist" option, so that when users disconnect
the pppd daemon doesen't have to be restarted.  Running the "last" command
after several days shows many different users "still logged in" when in fact
they are not.

	

>How-To-Repeat:

Included is the content of the /etc/ppp/options file:


crtscts				# Hardware flow control
netmask 255.255.255.0		# netmask ( not required )
domain portsoft.com		# your domain
passive				# wait for LCP
modem				# modem line
silent
proxyarp
login
dns1  192.168.1.61
dns2  206.26.36.34
persist
auth


Included is the system startup file for the pppd daemon

#!/bin/sh 

# Startup script for pppd

# Clear any old ppp interfaces in the kernel
/sbin/ifconfig ppp0 down
/sbin/ifconfig ppp0 delete
/sbin/ifconfig ppp1 down
/sbin/ifconfig ppp1 delete
/sbin/ifconfig ppp2 down
/sbin/ifconfig ppp2 delete

# enable autoanswer mode is done in hardware in the modems

# run ppp
/usr/sbin/pppd 192.168.1.77:192.168.1.201 /dev/ttyd0 115200
/usr/sbin/pppd 192.168.1.77:192.168.1.202 /dev/ttyd1 115200
/usr/sbin/pppd 192.168.1.77:192.168.1.203 /dev/ttyd2 115200


It should be noted that each separate pppd processes uses the same 
/etc/ppp/options file.  This precludes solutions that involve the
use of shell scripts that have hard-wired tty's in them called by
a logout command in the options file.

	

>Fix:
	
	

I suspect that the ppplogout() function is not being called when the 
persist option is used and clients hangup.  I'll check into this further
eventually, when the next version of pppd is put into the distribution.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Tue Aug 12 19:51:24 PDT 1997 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->feedback 
State-Changed-By: brian 
State-Changed-When: Thu Apr 1 00:15:10 PST 1999 
State-Changed-Why:  
Can the originator test again on a more recent FreeBSD ? 
From inspecting the code, it looks like it may be fixed. 


Responsible-Changed-From-To: freebsd-bugs->brian 
Responsible-Changed-By: brian 
Responsible-Changed-When: Thu Apr 1 00:15:10 PST 1999 
Responsible-Changed-Why:  
I think this has been fixed 

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: tedm@toybox.placo.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/4221: Kernel mode PPP doesen't update wtmp file properly on logout 
Date: Tue, 22 Jun 1999 17:07:37 +0200

 Hi Ted,
 
 Could you provide feedback on the problem, which you reported in August
 1997, with pppd leaving stale entries in wtmp?
 
 The last entry I can see on our PR 4221 is Brian Somers requesting
 feedback and mentioning that he thought the problem was fixed. That was
 in April this year.
 
 Versions of FreeBSD of particular interest are 3.1-RELEASE and
 4.0-CURRENT.
 
 Thanks,
 Sheldon.
 
 

From: tedm@toybox.placo.com
To: "Sheldon Hearn" <sheldonh@uunet.co.za>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/4221: Kernel mode PPP doesen't update wtmp file properly on logout
Date: Thu, 24 Jun 99 07:23:57 -0800

 I'll check into it.
 
 Ted
 
 
 

From: Sheldon Hearn <sheldonh@freebsd.org>
To: freebsd-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/4221: Kernel mode PPP doesen't update wtmp
Date: Sat, 24 Jul 1999 13:50:40 +0200

 Hi Ted,
 
 Have you had time to look into whether or not the problem you reported
 in PR 4221 has been resolved to your satisfaction? I last heard from you
 on 24 June 1999 and thought I'd send a reminder. :-)
 
 Later,
 Sheldon.
 
State-Changed-From-To: feedback->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Aug 10 06:47:11 PDT 1999 
State-Changed-Why:  
Timed out waiting for feedback from originator. The author believes 
that this problem has been fixed for a while. 
>Unformatted:
