From annihilator_sc@hotmail.com  Sat Nov  9 01:27:10 2002
Return-Path: <annihilator_sc@hotmail.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BD20E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Nov 2002 01:27:10 -0800 (PST)
Received: from hotmail.com (oe71.pav2.hotmail.com [64.4.36.205])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7DE9943EAC
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  9 Nov 2002 01:27:09 -0800 (PST)
	(envelope-from annihilator_sc@hotmail.com)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
	 Sat, 9 Nov 2002 01:27:09 -0800
Message-Id: <OE713oHMwVN7miR9Odu00001d19@hotmail.com>
Date: Sat, 9 Nov 2002 10:26:40 +0100
From: "Annihilator" <annihilator_sc@hotmail.com>
To: <FreeBSD-gnats-submit@freebsd.org>
Subject: sshd won't display last login information

>Number:         45156
>Category:       bin
>Synopsis:       sshd won't display last login information
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 09 01:30:01 PST 2002
>Closed-Date:    Mon Jul 14 03:52:30 PDT 2003
>Last-Modified:  Mon Jul 14 03:52:30 PDT 2003
>Originator:     Annihilator
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
SawMan's Consortium
>Environment:
FreeBSD router.pilar 4.7-RELEASE FreeBSD 4.7-RELEASE #0: Sat Oct 12 01:02:55
CEST 2002     root@sarah.pilar:/usr/src/sys/compile/ROUTER  i386

>Description:
When a user connects to a FreeBSD machine via ssh, no last login time is
displayed.

>How-To-Repeat:
ssh to a FreeBSD 4.7-RELEASE machine.

>Fix:
Unknown.
>Release-Note:
>Audit-Trail:

From: Gil Kloepfer <gil@arlut.utexas.edu>
To: freebsd-gnats-submit@FreeBSD.org
Cc: annihilator_sc@hotmail.com
Subject: Re: bin/45156: sshd won't display last login information
Date: Fri, 24 Jan 2003 11:31:00 -0600

 I've verified this bug as well.
 
 The problem is in the OpenSSH source, and that if USE_PAM is defined,
 which it seems to be in FreeBSD, the #ifndef on line 762 of session.c 
 removes the code that displays the last login time.  I guess they
 assume that the PAM module will do that.
 
 If you change that line (in /usr/src/crypto/openssh/session.c) to
 
 #if !defined(USE_PAM) || defined(__FreeBSD__)
 
 then go to /usr/src/secure/usr.sbin/sshd
 and do a make sshd and install the new sshd into /usr/sbin and restart
 it will work again.  However, if it hasn't been reported already,
 it needs to be ported back into the OpenSSH source code.  I don't
 think my fix is likely the correct long-term one.
 
 -- 
 Gil Kloepfer - Network Support
 Applied Research Laboratories : The University of Texas at Austin
 (512) 835-3771 / gil@arlut.utexas.edu
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 17:59:16 PDT 2003 
Responsible-Changed-Why:  
Assign to SSH maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45156 
State-Changed-From-To: open->closed 
State-Changed-By: des 
State-Changed-When: Mon Jul 14 03:52:29 PDT 2003 
State-Changed-Why:  
OBE 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45156 
>Unformatted:
