From simokawa@sat.t.u-tokyo.ac.jp  Fri Mar 21 17:26:27 1997
Received: from uno.sat.t.u-tokyo.ac.jp (uno.sat.t.u-tokyo.ac.jp [133.11.70.160])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA29945
          for <FreeBSD-gnats-submit@freebsd.org>; Fri, 21 Mar 1997 17:26:23 -0800 (PST)
Received: by uno.sat.t.u-tokyo.ac.jp (8.8.5/8.7.3)
	id KAA15556; Sat, 22 Mar 1997 10:26:17 +0900 (JST)
Message-Id: <199703220126.KAA15556@uno.sat.t.u-tokyo.ac.jp>
Date: Sat, 22 Mar 1997 10:26:17 +0900 (JST)
From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Reply-To: simokawa@sat.t.u-tokyo.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: /usr/bin/login doesn't work with kerberos
X-Send-Pr-Version: 3.2

>Number:         3056
>Category:       bin
>Synopsis:       /usr/bin/login doesn't work with kerberos
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    davidn
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 21 17:30:01 PST 1997
>Closed-Date:    Tue Mar 25 08:22:04 EST 1997
>Last-Modified:  Tue Mar 25 08:23:02 EST 1997
>Originator:     Hidetoshi Shimokawa
>Release:        FreeBSD 2.2-RELEASE i386
>Organization:
University of Tokyo
>Environment:

	FreeBSD-2.2-RELEASE+ with MAKE_EBONES=yes

>Description:

	login.c refuses login from vaild kerberos authenticated user.
	this bug seems to be introduced by revision 1.12.2 and
	-current also has the same bug.

>How-To-Repeat:

	make a kerberos user and login the box with the username from
	anywhere (ttyv?, telnet ...).

>Fix:
	
	apply this patch.

--- login.c.orig	Sat Mar 22 10:13:28 1997
+++ login.c	Sat Mar 22 10:13:52 1997
@@ -344,7 +344,9 @@
 			#if 0
 			continue;
 			#endif
-		} else if (pwd && !rval)
+		}
+
+		if (pwd && !rval)
 			break;
 
 		(void)printf("Login incorrect\n");

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: davidn 
State-Changed-When: Sat Mar 22 15:23:52 EST 1997 
State-Changed-Why:  
I seem to have inadvertantly caused this. 
The patch, however, will cause problem in other circumstances. 


Responsible-Changed-From-To: freebsd-bugs->davidn 
Responsible-Changed-By: davidn 
Responsible-Changed-When: Sat Mar 22 15:23:52 EST 1997 
Responsible-Changed-Why:  
My probblem. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: davidn 
State-Changed-When: Tue Mar 25 08:22:04 EST 1997 
State-Changed-Why:  
Fixed in revision 1.20 of login.c. 
>Unformatted:
