From nobody@FreeBSD.org  Sat Feb 12 16:09:35 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A408B106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Feb 2011 16:09:35 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 9271B8FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Feb 2011 16:09:35 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p1CG9ZRR040855
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 12 Feb 2011 16:09:35 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p1CG9ZMl040854;
	Sat, 12 Feb 2011 16:09:35 GMT
	(envelope-from nobody)
Message-Id: <201102121609.p1CG9ZMl040854@red.freebsd.org>
Date: Sat, 12 Feb 2011 16:09:35 GMT
From: "Jason C. Wells" <jcw@speakeasy.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Kerberos V5 refuses authentication because Read req failed: ASN.1 encoding ended unexpectedly
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         154709
>Category:       kern
>Synopsis:       [heimdal] Kerberos V5 refuses authentication because Read req failed: ASN.1 encoding ended unexpectedly [regression]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 12 16:10:08 UTC 2011
>Closed-Date:    
>Last-Modified:  Tue Mar  1 06:30:11 UTC 2011
>Originator:     Jason C. Wells
>Release:        8.1-RELEASE
>Organization:
n/a
>Environment:
FreeBSD a1.stradamotorsports.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Error message is:

Kerberos V5 refuses authentication because Read req failed: ASN.1 encoding ended unexpectedly


>How-To-Repeat:
On KDC:

Create new heimdal database: kstash --random-key; kadmin -l; init REALM
Start kadmind, kdc
extract keytabs on servers

On client:

[jcw@w16 ~]$ kdestroy
[jcw@w16 ~]$ kinit
jcw@STRADAMOTORSPORTS.COM's Password: 
[jcw@w16 ~]$ telnet s8
Trying 192.168.1.208...
Connected to s8.stradamotorsports.com.
Escape character is '^]'.
[ Trying mutual KERBEROS5 (host/s8.stradamotorsports.com@STRADAMOTORSPORTS.COM)... ]
[ Kerberos V5 refuses authentication because Read req failed: ASN.1 encoding ended unexpectedly ]
[ Trying KERBEROS5 (host/s8.stradamotorsports.com@STRADAMOTORSPORTS.COM)... ]
[ Kerberos V5 refuses authentication because Read req failed: ASN.1 encoding ended unexpectedly ]
Trying SRA secure login:
User (jcw):

But this is funny.  You get a host ticket in your credentials cache.

[jcw@w16 ~]$ klist
Credentials cache: FILE:/tmp/krb5cc_1001
        Principal: jcw@STRADAMOTORSPORTS.COM

  Issued           Expires          Principal
Feb 12 08:07:11  Feb 12 18:07:11  krbtgt/STRADAMOTORSPORTS.COM@STRADAMOTORSPORTS.COM
Feb 12 08:07:14  Feb 12 18:07:11  host/s8.stradamotorsports.com@STRADAMOTORSPORTS.COM


>Fix:
Uknown:

Problem doesn't exist in 7.3-RELEASE

>Release-Note:
>Audit-Trail:

From: Mark Linimon <linimon@lonesome.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/154709: [heimdal] Kerberos V5 refuses authentication
 because Read req failed: ASN.1 encoding ended unexpectedly [regression]
Date: Tue, 1 Mar 2011 00:29:39 -0600

 ----- Forwarded message from "Jason C. Wells" <jcw@speakeasy.net> -----
 
 Date: Mon, 28 Feb 2011 21:40:21 -0800
 From: "Jason C. Wells" <jcw@speakeasy.net>
 To: freebsd-bugs@FreeBSD.org
 Subject: PR 154709  Applies to 8.2-RELEASE
 
 PR 154709 also applies to 8.2-RELEASE.
 
 Thanks,
 Jason
 
 ----- End forwarded message -----
>Unformatted:
