Re: KITTEN: IETF 75 - 76

Nicolas Williams <Nicolas.Williams@sun.com> Wed, 19 August 2009 20:39 UTC

Return-Path: <Nicolas.Williams@sun.com>
X-Original-To: kitten@core3.amsl.com
Delivered-To: kitten@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DFEA428C10F for <kitten@core3.amsl.com>; Wed, 19 Aug 2009 13:39:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.925
X-Spam-Level:
X-Spam-Status: No, score=-5.925 tagged_above=-999 required=5 tests=[AWL=0.121, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9MxeVHgKmz76 for <kitten@core3.amsl.com>; Wed, 19 Aug 2009 13:39:55 -0700 (PDT)
Received: from brmea-mail-4.sun.com (brmea-mail-4.Sun.COM [192.18.98.36]) by core3.amsl.com (Postfix) with ESMTP id 179393A6D27 for <kitten@ietf.org>; Wed, 19 Aug 2009 13:39:55 -0700 (PDT)
Received: from dm-central-02.central.sun.com ([129.147.62.5]) by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n7JKe0iZ018074 for <kitten@ietf.org>; Wed, 19 Aug 2009 20:40:00 GMT
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by dm-central-02.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL, v2.2) with ESMTP id n7JKe0h6011374 for <kitten@ietf.org>; Wed, 19 Aug 2009 14:40:00 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id n7JKTHlo004423; Wed, 19 Aug 2009 15:29:17 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id n7JKTEQw004422; Wed, 19 Aug 2009 15:29:14 -0500 (CDT)
X-Authentication-Warning: binky.Central.Sun.COM: nw141292 set sender to Nicolas.Williams@sun.com using -f
Date: Wed, 19 Aug 2009 15:29:14 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Martin Rex <Martin.Rex@sap.com>
Subject: Re: KITTEN: IETF 75 - 76
Message-ID: <20090819202914.GI1043@Sun.COM>
References: <20090819163215.GD1043@Sun.COM> <200908191923.n7JJNwWq027044@fs4113.wdf.sap.corp>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <200908191923.n7JJNwWq027044@fs4113.wdf.sap.corp>
User-Agent: Mutt/1.5.7i
Cc: kitten@ietf.org, Shawn.Emery@sun.com
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/kitten>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Aug 2009 20:39:56 -0000

On Wed, Aug 19, 2009 at 09:23:58PM +0200, Martin Rex wrote:
> Nicolas Williams wrote:
> > 
> > > GSS-API is part of the identity selection problem since its the holder  
> > > of credentials.
> > > 
> > > The application/framework will need to drive authentication and select/ 
> > > try credentials as it seems approproate and remember what of them was  
> > > useful.
> > > 
> > > This would work today, if it was possible to get initial credentials  
> > > and list existing/configured credentials
> > 
> > Sure.  An iterator following the same design principles as
> > gss_display_status() would look like:
> > 
> > OM_unit32 gss_list_default_cred_names(
> > 	OM_uint32 *minor_status,
> > 	gss_name_t  *name,
> > 	int	    *more
> > );
> 
> That call looks somewhat restricted to me.

It is.  It should be sufficient however.  (Here name would be an MN.)

If you care about specific mechs you could then call gss_add_cred() with
each name output by gss_list_default_cred_names() and inquire the
result.

> How about something like this:
> 
> OM_uint32 gss_list_default_cred_names(
> 	OM_uint32    * minor_status,
> 	gss_name_t   * name,
> 	gss_OID_set  * mech_oids,
> 	int          * is_default,
> 	OM_uint32    * cred_context
> );

What's "cred_context"?  Would that correspond to the 'more' argument in
my variant?

But yes, it'd be quite useful (though not strictly necessary) to output
a mech OID set and is_default.  As long as only mech OIDs that are all
in the same family (and therefore have the same MN/exported name token
forms) are allowed to appear in mech_oids.

Nico
--