Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Feb 2011 16:09:35 GMT
From:      "Jason C. Wells" <jcw@speakeasy.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/154709: Kerberos V5 refuses authentication because Read req failed: ASN.1 encoding ended unexpectedly
Message-ID:  <201102121609.p1CG9ZMl040854@red.freebsd.org>
Resent-Message-ID: <201102121610.p1CGA8mA017321@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         154709
>Category:       misc
>Synopsis:       Kerberos V5 refuses authentication because Read req failed: ASN.1 encoding ended unexpectedly
>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:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102121609.p1CG9ZMl040854>