Subject: bin/29720: telnetd noise after PAM(?): SRA?
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <hubert@feyrer.de>
List: netbsd-bugs
Date: 03/17/2005 00:10:00
>Number:         29720
>Category:       bin
>Synopsis:       telnetd noise after PAM(?): SRA?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 17 00:10:00 +0000 2005
>Originator:     Hubert Feyrer
>Release:        NetBSD 2.99.16
>Organization:
bla!
>Environment:
	
	
Architecture: i386
Machine: i386
>Description:
	After upgradind a machine to -current and playing with various
	PAM related things, I found that the "telnet localhost" dialog
	looks a lot different these days.

	On 2.0 this is:

		miyu% telnet localhost
		Trying 127.0.0.1...
		Connected to localhost.
		Escape character is '^]'.

		NetBSD/i386 (miyu) (ttypa)

		login: feyrer
		Password:
		Last login: Wed Mar 16 19:37:04 2005 from :0.0 on ttyp7
		...

	On -current, this is:

		qemu: {1} telnet localhost
		Trying ::1...
		Connected to localhost.
		Escape character is '^]'.
===>		Trying SRA secure login:
===>		User (feyrer): 
		Password: 
===>		[ SRA accepts you ]

===>		NetBSD/i386 (qemu) (ttyp1)

		Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
		    The NetBSD Foundation, Inc.  All rights reserved.
		Copyright (c) 1982, 1986, 1989, 1991, 1993
		    The Regents of the University of California.  All rights reserved.

		NetBSD 2.99.16 (GENERIC) #2: Sun Mar 13 01:29:31 MET 2005

		Welcome to NetBSD!


	Several things can be observed here:
	1) I have no idea what "Trying SRA secure login" means
	2) There's no more "NetBSD/$arch ($hostname) ($tty)" banner printed
  	   any more
	3) The traditional "login:" prompt was changed to "User", plus
	   a display of the local username. Confusing!
 	4) After password entry, one wonders who SRA is to accept one :)
	5) There's no "Last login ..." line! Playing around with this
 	   got some errors about lastloginx being of inappropriate
	   file type. /var/log/lastloginx was an empty file of mode 664,
	   owned by root/wheel. No idea what that is.

>How-To-Repeat:
	Enable telnet in /etc/inetd.conf
	telnet localhost
	login

>Fix:
	Make it behave like 2.0 again please (no SRA noise, "login:" prompt,
	"Last login ..." display).

>Unformatted: