Received: from pheriche.sun.com (pheriche.sun.com [192.18.98.34]) by krbdev.mit.edu (8.9.3) with ESMTP id RAA00417; Tue, 29 Apr 2003 17:02:25 -0400 (EDT) Received: from centralmail1brm.Central.Sun.COM ([129.147.62.1]) by pheriche.sun.com (8.9.3p2+Sun/8.9.3) with ESMTP id PAA26945; Tue, 29 Apr 2003 15:02:09 -0600 (MDT) Received: from binky.central.sun.com (binky.Central.Sun.COM [129.153.128.104]) by centralmail1brm.Central.Sun.COM (8.12.9+Sun/8.12.9/ENSMAIL,v2.2) with ESMTP id h3TL28Ng015306; Tue, 29 Apr 2003 15:02:08 -0600 (MDT) Received: from binky.central.sun.com (localhost [127.0.0.1]) by binky.central.sun.com (8.12.5+Sun/8.12.3) with ESMTP id h3TKxgQx006949; Tue, 29 Apr 2003 13:59:42 -0700 (PDT) Received: (from nw141292@localhost) by binky.central.sun.com (8.12.5+Sun/8.12.3/Submit) id h3TKxf1B006948; Tue, 29 Apr 2003 13:59:41 -0700 (PDT) Date: Tue, 29 Apr 2003 13:59:41 -0700 From: Nicolas Williams To: Sam Hartman via RT Cc: krb5-prs@mit.edu Subject: Re: [krbdev.mit.edu #1445] GSSAPI can fail to generate error in GSS_C_NO_CREDENTIAL case Message-Id: <20030429135941.E4352@binky.central.sun.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rt-comment@krbdev.mit.edu on Tue, Apr 29, 2003 at 04:23:24PM -0400 RT-Send-Cc: X-RT-Original-Encoding: us-ascii Content-Length: 949 Which brings us back to a discussion we had at Cthon03: why not always decode the ap-req and use krb5_rd_req_dec() instead of krb5_rd_req(). IIRC you did not like having the decoding API exposed, so I suggested an API for querying encoded AP-REQs. It would also be nice to have an exposed API to query DER encoded objects for their tag and length. Cheers, Nico On Tue, Apr 29, 2003 at 04:23:24PM -0400, Sam Hartman via RT wrote: > > > Nico points out that in accept_sec_context, cred->princ is used as the > server component of the call to krb5_mk_error. > > > This is problematic because sname and srealm are required fields and > cred->princ can be null in the gss_c_no_credential case. > > > I believe that if cred->princ is null you can get the principal out of > the decoded ap_req. > > _______________________________________________ > krb5-bugs mailing list > krb5-bugs@mit.edu > http://mailman.mit.edu/mailman/listinfo/krb5-bugs