
Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9UK6Obs016554; Mon, 30 Oct 2006 13:06:24 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9UK6OQB016553; Mon, 30 Oct 2006 13:06:24 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9UK6MMB016534 for <ietf-sasl@imc.org>; Mon, 30 Oct 2006 13:06:23 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.1.99] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RUZbPQAEsani@rufus.isode.com>; Mon, 30 Oct 2006 20:06:22 +0000
Message-ID: <45465B32.8050308@isode.com>
Date: Mon, 30 Oct 2006 20:06:10 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Simon Josefsson <jas@extundo.com>
CC: ietf-sasl@imc.org
Subject: Re: GS2 update
References: <87ods3jgdz.fsf@latte.josefsson.org>
In-Reply-To: <87ods3jgdz.fsf@latte.josefsson.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Simon Josefsson wrote:

>The first issue above should be easy to close fast if someone can
>independently compute the GS2 mech name for Kerberos V5 OIDs.  I'm
>worried about the lack of response on this matter, it would be a
>simple thing to resolve for anyone with interest in GS2.  Does it
>indicate that nobody is interested in and/or committed to GS2?
>
>  
>
I am interested, but I am somewhat busy at the moment.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9PKFica001739; Wed, 25 Oct 2006 13:15:44 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9PKFiD7001738; Wed, 25 Oct 2006 13:15:44 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from boole.openldap.org (root@boole.openldap.org [204.152.186.50]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9PKFgAT001729 for <ietf-sasl@imc.org>; Wed, 25 Oct 2006 13:15:43 -0700 (MST) (envelope-from Kurt@OpenLDAP.org)
Received: from gypsy.OpenLDAP.org (71-80-218-136.dhcp.crcy.nv.charter.com [71.80.218.136] (may be forged)) (authenticated bits=0) by boole.openldap.org (8.13.8/8.13.8) with ESMTP id k9PKFfj6002558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-sasl@imc.org>; Wed, 25 Oct 2006 20:15:42 GMT (envelope-from Kurt@OpenLDAP.org)
Message-Id: <7.0.1.0.0.20061025131411.031a6f68@OpenLDAP.org>
X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0
Date: Wed, 25 Oct 2006 13:15:32 -0700
To: ietf-sasl@imc.org
From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
Subject: Re:I-D ACTION:draft-ietf-sasl-gs2-03.txt 
In-Reply-To: <E1GcolI-0004rl-0P@stiedprstage1.ietf.org>
References: <E1GcolI-0004rl-0P@stiedprstage1.ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Please review this revision to ensure issues raised during
the previous WG last call were adequately addressed.

-- Kurt

At 12:50 PM 10/25/2006, Internet-Drafts@ietf.org wrote:
>A New Internet-Draft is available from the on-line Internet-Drafts 
>directories.
>This draft is a work item of the Simple Authentication and Security Layer Working Group of the IETF.
>
>        Title           : Using GSS-API Mechanisms in SASL: The GS2 Mechanism Family
>        Author(s)       : S. Josefsson
>        Filename        : draft-ietf-sasl-gs2-03.txt
>        Pages           : 22
>        Date            : 2006-10-25
>        
>This document describes how to use a Generic Security Service
>   Application Program Interface (GSS-API) mechanism in the the Simple
>   Authentication and Security Layer (SASL) framework.  This is done by
>   defining a new SASL mechanism family, called GS2.  This mechanism
>   family offers a number of improvements over the previous SASL/GSS-API
>   mechanism: it is more general, uses fewer messages for the
>   authentication phase in some cases, and supports a SASL-specific
>   notion of channel binding.
>
>A URL for this Internet-Draft is:
>http://www.ietf.org/internet-drafts/draft-ietf-sasl-gs2-03.txt
>
>To remove yourself from the I-D Announcement list, send a message to 
>i-d-announce-request@ietf.org with the word unsubscribe in the body of 
>the message. 
>You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
>to change your subscription settings.
>
>Internet-Drafts are also available by anonymous FTP. Login with the 
>username "anonymous" and a password of your e-mail address. After 
>logging in, type "cd internet-drafts" and then 
>"get draft-ietf-sasl-gs2-03.txt".
>
>A list of Internet-Drafts directories can be found in
>http://www.ietf.org/shadow.html 
>or ftp://ftp.ietf.org/ietf/1shadow-sites.txt
>
>Internet-Drafts can also be obtained by e-mail.
>
>Send a message to:
>        mailserv@ietf.org.
>In the body type:
>        "FILE /internet-drafts/draft-ietf-sasl-gs2-03.txt".
>        
>NOTE:   The mail server at ietf.org can return the document in
>        MIME-encoded form by using the "mpack" utility.  To use this
>        feature, insert the command "ENCODING mime" before the "FILE"
>        command.  To decode the response(s), you will need "munpack" or
>        a MIME-compliant mail reader.  Different MIME-compliant mail readers
>        exhibit different behavior, especially when dealing with
>        "multipart" MIME messages (i.e. documents which have been split
>        up into multiple messages), so check your local documentation on
>        how to manipulate these messages.
>
>Below is the data which will enable a MIME compliant mail reader
>implementation to automatically retrieve the ASCII version of the
>Internet-Draft.
>
>Content-Type: text/plain
>Content-ID:     <2006-10-25133252.I-D@ietf.org>
>
>ENCODING mime
>FILE /internet-drafts/draft-ietf-sasl-gs2-03.txt
>
>
><ftp://ftp.ietf.org/internet-drafts/draft-ietf-sasl-gs2-03.txt>



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9PJoB0t096625; Wed, 25 Oct 2006 12:50:11 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9PJoAH0096624; Wed, 25 Oct 2006 12:50:10 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from ns1.neustar.com (ns1.neustar.com [156.154.16.138]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9PJo9JK096605 for <ietf-sasl@imc.org>; Wed, 25 Oct 2006 12:50:10 -0700 (MST) (envelope-from ietf@ietf.org)
Received: from stiedprstage1.ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by ns1.neustar.com (Postfix) with ESMTP id 24E3026E57; Wed, 25 Oct 2006 19:50:04 +0000 (GMT)
Received: from ietf by stiedprstage1.ietf.org with local (Exim 4.43) id 1GcolI-0004rl-0P; Wed, 25 Oct 2006 15:50:04 -0400
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
To: i-d-announce@ietf.org
Cc: ietf-sasl@imc.org
From: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-sasl-gs2-03.txt 
Message-Id: <E1GcolI-0004rl-0P@stiedprstage1.ietf.org>
Date: Wed, 25 Oct 2006 15:50:04 -0400
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts 
directories.
This draft is a work item of the Simple Authentication and Security Layer Working Group of the IETF.

	Title		: Using GSS-API Mechanisms in SASL: The GS2 Mechanism Family
	Author(s)	: S. Josefsson
	Filename	: draft-ietf-sasl-gs2-03.txt
	Pages		: 22
	Date		: 2006-10-25
	
This document describes how to use a Generic Security Service
   Application Program Interface (GSS-API) mechanism in the the Simple
   Authentication and Security Layer (SASL) framework.  This is done by
   defining a new SASL mechanism family, called GS2.  This mechanism
   family offers a number of improvements over the previous SASL/GSS-API
   mechanism: it is more general, uses fewer messages for the
   authentication phase in some cases, and supports a SASL-specific
   notion of channel binding.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-sasl-gs2-03.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of 
the message. 
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.

Internet-Drafts are also available by anonymous FTP. Login with the 
username "anonymous" and a password of your e-mail address. After 
logging in, type "cd internet-drafts" and then 
"get draft-ietf-sasl-gs2-03.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt

Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-sasl-gs2-03.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<2006-10-25133252.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-sasl-gs2-03.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-sasl-gs2-03.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<2006-10-25133252.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9NHPJUm011850; Mon, 23 Oct 2006 10:25:19 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9NHPJBC011849; Mon, 23 Oct 2006 10:25:19 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from nwkea-mail-2.sun.com (nwkea-mail-2.sun.com [192.18.42.14]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9NHPHvT011834 for <ietf-sasl@imc.org>; Mon, 23 Oct 2006 10:25:18 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail3brm.Central.Sun.COM ([129.147.62.199]) by nwkea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k9NHPGER013630 for <ietf-sasl@imc.org>; Mon, 23 Oct 2006 10:25:17 -0700 (PDT)
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by centralmail3brm.Central.Sun.COM (8.13.6+Sun/8.13.6/ENSMAIL,v2.2) with ESMTP id k9NHPGTm014145 for <ietf-sasl@imc.org>; Mon, 23 Oct 2006 11:25:16 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.6+Sun/8.13.6) with ESMTP id k9NHPFVN028181; Mon, 23 Oct 2006 12:25:15 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.6+Sun/8.13.6/Submit) id k9NHPA0v028180; Mon, 23 Oct 2006 12:25:10 -0500 (CDT)
Date: Mon, 23 Oct 2006 12:25:10 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Simon Josefsson <jas@extundo.com>
Cc: ietf-sasl@imc.org
Subject: Re: Non-integrity GSSAPI mechanisms in GS2
Message-ID: <20061023172510.GD28107@binky.Central.Sun.COM>
Mail-Followup-To: Simon Josefsson <jas@extundo.com>, ietf-sasl@imc.org
References: <87k64fubq6.fsf@latte.josefsson.org> <tslodtrx0qn.fsf@cz.mit.edu> <87slj3sro7.fsf@latte.josefsson.org> <tsl8xkvwydu.fsf_-_@cz.mit.edu> <877j0fsq4u.fsf@latte.josefsson.org> <tsl4pvjwwws.fsf@cz.mit.edu> <87u03jr8fi.fsf@latte.josefsson.org> <tslejunvexm.fsf@cz.mit.edu> <20060907171255.GG317@binky.Central.Sun.COM> <873b9j3ln4.fsf_-_@latte.josefsson.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <873b9j3ln4.fsf_-_@latte.josefsson.org>
User-Agent: Mutt/1.5.7i
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

On Fri, Oct 20, 2006 at 01:56:31AM +0200, Simon Josefsson wrote:
> I'm struggling with how to support non-integrity GSSAPI mechanisms in
> GS2.  It seems to open for some undesirable complexity, although my
> lack of GSSAPI knowledge may be leading me in the wrong way.
> 
> It is not clear to me whether people wants GS2 to support 1) or 2), or
> possibly both 1) and 2), where 1) and 2) are:

(1) only.  (2) presumes interfaces that we don't have yet.  Sure, KITTEN
is working on some of those, but why wait for KITTEN?  Once the APIs
needed to support (2) come along then GS2 can be updated to explain how
to use (2).

Note also: there's no channel binding in GS2 w/o integrity protection in
the GSS mech.

Nico
-- 



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9NDiqn8056920; Mon, 23 Oct 2006 06:44:52 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9NDiqd8056919; Mon, 23 Oct 2006 06:44:52 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9NDioVC056894 for <ietf-sasl@imc.org>; Mon, 23 Oct 2006 06:44:51 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k9NDieqx009584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-sasl@imc.org>; Mon, 23 Oct 2006 15:44:40 +0200
X-Hashcash: 1:22:061023:ietf-sasl@imc.org::xkuVdPMJ3kQ4JDmg:4y6m
From: Simon Josefsson <jas@extundo.com>
To: ietf-sasl@imc.org
Subject: GS2 update
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
Date: Mon, 23 Oct 2006 15:44:40 +0200
Message-ID: <87ods3jgdz.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

All:

I have submitted an updated version of GS2.  Until it shows up in the
repository, you can view it from:

http://josefsson.org/sasl-gs2/draft-ietf-sasl-gs2-03.txt

I believe it closes all open issues, except for two that I have
requested help on before:

1) Compute Kerberos V5 mech name.

2) Support for non-integrity capable GSS mechanisms.

However, there has been many changes, and I may have missed some
suggestions.  Please consider the latest version ready to go except
for the two issues above.

The first issue above should be easy to close fast if someone can
independently compute the GS2 mech name for Kerberos V5 OIDs.  I'm
worried about the lack of response on this matter, it would be a
simple thing to resolve for anyone with interest in GS2.  Does it
indicate that nobody is interested in and/or committed to GS2?

The second might warrant more discussion.  I'd welcome text to solve
this, because I'm not sure how it should work, in particular with
regards to the integ_req flag.  Personally, I see no point in
supporting non-integrity authentication mechanisms -- it seems to
weaken GS2, so I would rather drop the feature and have those
interested in weak authentication schemes specify their own SASL
mechanism.  Further, nobody has presented a specific use-case for this
feature, so it seems to me be feature creepism.  However, text
proposals to resolve the problem is fine.

/Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9JNugj3028871; Thu, 19 Oct 2006 16:56:42 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9JNugb7028870; Thu, 19 Oct 2006 16:56:42 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9JNubcO028861 for <ietf-sasl@imc.org>; Thu, 19 Oct 2006 16:56:41 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k9JNuVEC009261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-sasl@imc.org>; Fri, 20 Oct 2006 01:56:32 +0200
From: Simon Josefsson <jas@extundo.com>
To: ietf-sasl@imc.org
Subject: Non-integrity GSSAPI mechanisms in GS2
References: <87zmde5zx8.fsf@latte.josefsson.org> <44FF1585.5060607@isode.com> <87k64fubq6.fsf@latte.josefsson.org> <tslodtrx0qn.fsf@cz.mit.edu> <87slj3sro7.fsf@latte.josefsson.org> <tsl8xkvwydu.fsf_-_@cz.mit.edu> <877j0fsq4u.fsf@latte.josefsson.org> <tsl4pvjwwws.fsf@cz.mit.edu> <87u03jr8fi.fsf@latte.josefsson.org> <tslejunvexm.fsf@cz.mit.edu> <20060907171255.GG317@binky.Central.Sun.COM>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061019:ietf-sasl@imc.org::41v/QbRT/blPkmcN:6jMh
Date: Fri, 20 Oct 2006 01:56:31 +0200
In-Reply-To: <20060907171255.GG317@binky.Central.Sun.COM> (Nicolas Williams's message of "Thu\, 7 Sep 2006 12\:12\:55 -0500")
Message-ID: <873b9j3ln4.fsf_-_@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

I'm struggling with how to support non-integrity GSSAPI mechanisms in
GS2.  It seems to open for some undesirable complexity, although my
lack of GSSAPI knowledge may be leading me in the wrong way.

It is not clear to me whether people wants GS2 to support 1) or 2), or
possibly both 1) and 2), where 1) and 2) are:

1) The client knows a-priori that the mechanism don't support
integrity, and the client uses GS2 in non-integrity mode directly
(i.e., integ_req_flag is FALSE when calling GSS_Init_sec_context).

2) The client doesn't know that the mechanism doesn't support
integrity, or the client knows that the mechanism supports integrity
but the credential may not support it, and the client attempts to
negotiate integrity (i.e., integ_req_flag is TRUE), but will
gracefully fallback to the non-integrity case when it realizes this
situation (i.e., integ_avail is FALSE when the context has been
established).

Further, is there any opinions regarding the use of, or even
requirement, of TLS for non-integrity capable GSS mechanisms?  PLAIN
and CRAM-MD5 seems comparable to a non-integrity capable GSS
mechanisms, and TLS is a MUST-option for PLAIN.

If TLS is required, there is a problem that, at least for 2), the
client may not know that the mechanism doesn't support integrity until
it has started the SASL handshake, and then it is typically too late
to enable TLS.

If there isn't convergence on this issue within the next 1-2 days (the
I-D cutoff is Monday), I'll leave non-integrity mechanisms for a later
update of the draft.

Thanks,
Simon

Nicolas Williams <Nicolas.Williams@Sun.COM> writes:

> On Thu, Sep 07, 2006 at 12:07:01PM -0400, Sam Hartman wrote:
>> 
>> >>>>> "Simon" == Simon Josefsson <jas@extundo.com> writes:
>> 
>>     Simon> Is the consensus that GS2 should support GSS-API mechanisms
>>     Simon> that doesn't offer integrity protection?
>> 
>> My opinion is yes, but that's an individual, not as an AD.
>
> Jeff Hutzelman and I worked out the implications of this off-line just
> now.
>
> If we allow use of GSS-API mechanisms that don't offer integrity
> protection then:
>
> a) GS2 has to be modified so the client sends the authzid without
>    wrapping;
>
> b) SASL applications must be able to inquire which GS2 mechanisms offer
>    integrity protection so they can avoid negotiating a mechanism that
>    cannot provide what they want;
>
> c) GSS mechs that can provide integ prot but fail to provide it for a
>    given security context are a problem -- GS2 should fail
>    authentication for such mechanisms when the security context fails to
>    provide integrity protection and either the application wanted a
>    security layer or wanted channel binding.
>
> I take no position on whether GS2 should support GSS-API mechanisms that
> cannot provide integrity protection.  Though I can probably be convinced
> that it should.
>
> Nico
> -- 



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9AJo9hU046949; Tue, 10 Oct 2006 12:50:09 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9AJo9XT046948; Tue, 10 Oct 2006 12:50:09 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from ns3.neustar.com (ns3.neustar.com [156.154.24.138]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9AJo8FD046938 for <ietf-sasl@imc.org>; Tue, 10 Oct 2006 12:50:09 -0700 (MST) (envelope-from ietf@ietf.org)
Received: from stiedprstage1.ietf.org (stiedprstage1.va.neustar.com [10.31.47.10]) by ns3.neustar.com (Postfix) with ESMTP id 8CF4D175C9; Tue, 10 Oct 2006 19:50:02 +0000 (GMT)
Received: from ietf by stiedprstage1.ietf.org with local (Exim 4.43) id 1GXNc2-0004RG-5P; Tue, 10 Oct 2006 15:50:02 -0400
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
To: i-d-announce@ietf.org
Cc: ietf-sasl@imc.org
From: Internet-Drafts@ietf.org
Subject: I-D ACTION:draft-ietf-sasl-rfc2831bis-10.txt 
Message-Id: <E1GXNc2-0004RG-5P@stiedprstage1.ietf.org>
Date: Tue, 10 Oct 2006 15:50:02 -0400
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts 
directories.
This draft is a work item of the Simple Authentication and Security Layer Working Group of the IETF.

	Title		: Using Digest Authentication as a SASL Mechanism
	Author(s)	: A. Melnikov
	Filename	: draft-ietf-sasl-rfc2831bis-10.txt
	Pages		: 45
	Date		: 2006-10-10
	
This specification defines how HTTP Digest Authentication (RFC 2617)
   can be used as a Simple Authentication and Security Layer (SASL, RFC
   4422) mechanism for any protocol that has a SASL profile. It is
   intended both as an improvement over CRAM-MD5 (RFC 2195) and as a
   convenient way to support a single authentication mechanism for web,
   mail, LDAP, and other protocols.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-sasl-rfc2831bis-10.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of 
the message. 
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.

Internet-Drafts are also available by anonymous FTP. Login with the 
username "anonymous" and a password of your e-mail address. After 
logging in, type "cd internet-drafts" and then 
"get draft-ietf-sasl-rfc2831bis-10.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt

Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-sasl-rfc2831bis-10.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body;
	access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID:	<2006-10-10113232.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-sasl-rfc2831bis-10.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-sasl-rfc2831bis-10.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID:	<2006-10-10113232.I-D@ietf.org>

--OtherAccess--

--NextPart--



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k94HM0fX058375; Wed, 4 Oct 2006 10:22:00 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k94HM0eH058374; Wed, 4 Oct 2006 10:22:00 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from chokecherry.srv.cs.cmu.edu (CHOKECHERRY.SRV.CS.CMU.EDU [128.2.185.41]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k94HLxlW058332 for <ietf-sasl@imc.org>; Wed, 4 Oct 2006 10:21:59 -0700 (MST) (envelope-from jhutz@cmu.edu)
Received: from SIRIUS.FAC.CS.CMU.EDU (SIRIUS.FAC.CS.CMU.EDU [128.2.209.170]) (authenticated bits=0) by chokecherry.srv.cs.cmu.edu (8.13.6/8.13.6) with ESMTP id k94HLc86027359 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Oct 2006 13:21:39 -0400 (EDT)
Date: Wed, 04 Oct 2006 13:21:38 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: Simon Josefsson <jas@extundo.com>, Alexey Melnikov <alexey.melnikov@isode.com>
cc: ietf-sasl@imc.org, Jeffrey Hutzelman <jhutz@cmu.edu>
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
Message-ID: <933D81D9447E2B87BCD2819A@sirius.fac.cs.cmu.edu>
In-Reply-To: <87k63gik8h.fsf@latte.josefsson.org>
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org>	<45226F07.3050901@isode.com> <871wppjv5s.fsf@latte.josefsson.org>	<4522858B.5030802@isode.com> <87k63gik8h.fsf@latte.josefsson.org>
Originator-Info: login-token=Mulberry:01/pXrj2j9YANK4GMQMRMb/pUHIrqFyWRrChn0NBU=; token_authority=postmaster@andrew.cmu.edu
X-Mailer: Mulberry/3.1.6 (Linux/x86)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

On Wednesday, October 04, 2006 10:00:14 AM +0200 Simon Josefsson 
<jas@extundo.com> wrote:

>> I would change "desired" to "recommended", but otherwise this looks Ok.
>
> Since recommended is a RFC 2119 word, I've though it best to avoid
> using them when the RFC 2119 interpretation is not intended.  I think
> the sentence reads fine if "desired" is removed entirely, though, so I
> changed it into:

I agree, it reads fine if you remove "desired" entirely.  However, changing 
it to "recommended" is also fine, since the sentence in question describes 
specifically how to generated the service name RECOMMENDED (RFC2119) by the 
preceding sentence.

-- Jeff



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9480NVk052963; Wed, 4 Oct 2006 01:00:23 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k9480N0Q052962; Wed, 4 Oct 2006 01:00:23 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k9480MtE052951 for <ietf-sasl@imc.org>; Wed, 4 Oct 2006 01:00:22 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k9480Eii015116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Oct 2006 10:00:15 +0200
From: Simon Josefsson <jas@extundo.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org> <45226F07.3050901@isode.com> <871wppjv5s.fsf@latte.josefsson.org> <4522858B.5030802@isode.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061004:ietf-sasl@imc.org::+lzt1yKO1/r8GBkq:Lln9
X-Hashcash: 1:22:061004:alexey.melnikov@isode.com::GwzG/wAlDfmVzJsU:Yk9i
Date: Wed, 04 Oct 2006 10:00:14 +0200
In-Reply-To: <4522858B.5030802@isode.com> (Alexey Melnikov's message of "Tue\, 03 Oct 2006 16\:45\:15 +0100")
Message-ID: <87k63gik8h.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Alexey Melnikov <alexey.melnikov@isode.com> writes:

>>>I thinks something like (from GS1) is sufficient:
>>>
>>>  (**) - Use of server's principal names having
>>>  GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>>>  where "service" is the service name specified in the protocol's
>>>  profile, is RECOMMENDED.
>>>
>>>So basically this allows for other name types.
>>>    
>>>
>>OK.  I added the explanation for "hostname" and the reference to
>>GSS_Import_name, that were both lost, so the entire sentence now
>>reads:
>>
>>      <t>(**) - Use of server's principal names having
>>	GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname"
>>	format, where "service" is the service name specified in the
>>	protocol's profile, and "hostname" is the fully qualified host
>>	name of the server, is RECOMMENDED.  The desired server name
>>  
>>
> I would change "desired" to "recommended", but otherwise this looks Ok.

Since recommended is a RFC 2119 word, I've though it best to avoid
using them when the RFC 2119 interpretation is not intended.  I think
the sentence reads fine if "desired" is removed entirely, though, so I
changed it into:

      <t>(**) - Use of server's principal names having
	GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname"
	format, where "service" is the service name specified in the
	protocol's profile, and "hostname" is the fully qualified host
	name of the server, is RECOMMENDED.  The server name is
	generated by calling GSS_Import_name with input_name_type of
	GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
	"service@hostname".</t>

>>	is generated by calling GSS_Import_name with input_name_type
>>	of GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
>>	"service@hostname".</t>
>>
>>Perhaps GS1 should have a similar update, in AUTH48 or so.
>
> I can do, if others agree.

I think it would be useful.  Right now, the definition of "hostname"
and the reference to GSS_Import_name is missing from the section that
discuss the server side.

/Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k947uTPf052426; Wed, 4 Oct 2006 00:56:29 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k947uTWN052424; Wed, 4 Oct 2006 00:56:29 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k947uQPe052415 for <ietf-sasl@imc.org>; Wed, 4 Oct 2006 00:56:28 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k947uGqH014677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 Oct 2006 09:56:17 +0200
From: Simon Josefsson <jas@extundo.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org> <45226B74.1090704@isode.com> <87ejtpjwxh.fsf@latte.josefsson.org> <45228C80.4020906@isode.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061004:alexey.melnikov@isode.com::epH0j+FbfSslUBiW:4zxE
X-Hashcash: 1:22:061004:ietf-sasl@imc.org::Rs4yQKS2RKAgyqyD:iW+a
Date: Wed, 04 Oct 2006 09:56:15 +0200
In-Reply-To: <45228C80.4020906@isode.com> (Alexey Melnikov's message of "Tue\, 03 Oct 2006 17\:14\:56 +0100")
Message-ID: <87odssikf4.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Alexey Melnikov <alexey.melnikov@isode.com> writes:

> Simon Josefsson wrote:
>
>>Alexey Melnikov <alexey.melnikov@isode.com> writes:
>>  
>>
>>>>>And the text quoted above is followed by additional text which is not
>>>>>currently in GS2:
>>>>>
>>>>> Upon successful establishment of the security context and if the
>>>>> server used GSS_C_NO_NAME/GSS_C_NO_CREDENTIAL to create acceptor
>>>>> credential handle, the server SHOULD also check using the
>>>>> GSS_Inquire_context that the target_name used by the client matches:
>>>>>
>>>>> -  the GSS_C_NT_HOSTBASED_SERVICE "service@hostname" name syntax,
>>>>>    where "service" is the service name specified in the application
>>>>>    protocol's profile.
>>>>>
>>>>> When GSS_Accept_sec_context returns GSS_S_COMPLETE, the server
>>>>> examines the context to ensure that it provides a level of protection
>>>>> permitted by the server's security policy.
>>>>>          
>>>>>
>>>>Thanks, I added this, but changed the SHOULD into MUST, because
>>>>otherwise it seems we open up to a mitm.
>>>>      
>>>>
>>>No, the SHOULD is here because the server could have used a specific
>>>principal during GSS_Import_Name. In such case there would be no need to
>>>do the check.
>>>    
>>>
>>The text applies only when GSS_C_NO_NAME and/or GSS_C_NO_CREDENTIAL
>>was used, and in that case I think the test is necessary.  Or Is there
>>another reason to not do the test?
>>  
>>
> A server implementation can have some external knowledge about the
> principal that will be selected when GSS_C_NO_NAME and/or
> GSS_C_NO_CREDENTIAL is used. I guess this can be interpreted as
> compliance with the SHOULD?

Yes, that makes sense.  I reverted it to SHOULD.

Thanks,
Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93GF4Cp046859; Tue, 3 Oct 2006 09:15:04 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93GF4vk046858; Tue, 3 Oct 2006 09:15:04 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93GF02D046835 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 09:15:03 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.109] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RSKMgwBrFb0g@rufus.isode.com>; Tue, 3 Oct 2006 17:15:00 +0100
Message-ID: <45228C80.4020906@isode.com>
Date: Tue, 03 Oct 2006 17:14:56 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Simon Josefsson <jas@extundo.com>
CC: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org>	<450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org>	<45226B74.1090704@isode.com> <87ejtpjwxh.fsf@latte.josefsson.org>
In-Reply-To: <87ejtpjwxh.fsf@latte.josefsson.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Simon Josefsson wrote:

>Alexey Melnikov <alexey.melnikov@isode.com> writes:
>  
>
>>>>And the text quoted above is followed by additional text which is not
>>>>currently in GS2:
>>>>
>>>> Upon successful establishment of the security context and if the
>>>> server used GSS_C_NO_NAME/GSS_C_NO_CREDENTIAL to create acceptor
>>>> credential handle, the server SHOULD also check using the
>>>> GSS_Inquire_context that the target_name used by the client matches:
>>>>
>>>> -  the GSS_C_NT_HOSTBASED_SERVICE "service@hostname" name syntax,
>>>>    where "service" is the service name specified in the application
>>>>    protocol's profile.
>>>>
>>>> When GSS_Accept_sec_context returns GSS_S_COMPLETE, the server
>>>> examines the context to ensure that it provides a level of protection
>>>> permitted by the server's security policy.
>>>>   
>>>>        
>>>>
>>>Thanks, I added this, but changed the SHOULD into MUST, because
>>>otherwise it seems we open up to a mitm.
>>>      
>>>
>>No, the SHOULD is here because the server could have used a specific
>>principal during GSS_Import_Name. In such case there would be no need to
>>do the check.
>>    
>>
>The text applies only when GSS_C_NO_NAME and/or GSS_C_NO_CREDENTIAL
>was used, and in that case I think the test is necessary.  Or Is there
>another reason to not do the test?
>  
>
A server implementation can have some external knowledge about the 
principal that will be selected when GSS_C_NO_NAME and/or 
GSS_C_NO_CREDENTIAL is used. I guess this can be interpreted as 
compliance with the SHOULD?



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93FjLJL036748; Tue, 3 Oct 2006 08:45:21 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93FjLb0036747; Tue, 3 Oct 2006 08:45:21 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93FjJlB036741 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 08:45:20 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.109] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RSKFjgBrFY59@rufus.isode.com>; Tue, 3 Oct 2006 16:45:19 +0100
Message-ID: <4522858B.5030802@isode.com>
Date: Tue, 03 Oct 2006 16:45:15 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Simon Josefsson <jas@extundo.com>
CC: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org>	<450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org>	<45226F07.3050901@isode.com> <871wppjv5s.fsf@latte.josefsson.org>
In-Reply-To: <871wppjv5s.fsf@latte.josefsson.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Simon Josefsson wrote:

>Alexey Melnikov <alexey.melnikov@isode.com> writes:
>  
>
>>Simon Josefsson wrote:
>>    
>>
>>>>>4.2.  Context Token
>>>>>          
>>>>>
>>>>[...]   
>>>>        
>>>>
>>>>> The client calls GSS_Init_sec_context, passing in
>>>>> input_context_handle of 0 (initially), mech_type of the GSSAPI
>>>>> mechanism for which this SASL mechanism is registered, the
>>>>> chan_binding is set to NULL, and targ_name equal to output_name from
>>>>> GSS_Import_Name called with input_name_type of
>>>>> GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
>>>>>          
>>>>>
>>>>The GS1 has the note marker (*) after the "GSS_C_NT_HOSTBASED_SERVICE",
>>>>the note reads:
>>>>
>>>> (*) - Clients MAY use name types other than
>>>> GSS_C_NT_HOSTBASED_SERVICE to import servers' acceptor names, but
>>>> only when they have a priori knowledge that the servers support
>>>> alternate name types.  Otherwise clients MUST use
>>>> GSS_C_NT_HOSTBASED_SERVICE for importing acceptor names.
>>>>
>>>>This is to address recent Nico's proposal to allow for domain based names.
>>>>        
>>>>
>>>I've added this.
>>>
>>>Is something similar needed for the server side too?
>>>      
>>>
>>I thinks something like (from GS1) is sufficient:
>>
>>  (**) - Use of server's principal names having
>>  GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>>  where "service" is the service name specified in the protocol's
>>  profile, is RECOMMENDED.
>>
>>So basically this allows for other name types.
>>    
>>
>OK.  I added the explanation for "hostname" and the reference to
>GSS_Import_name, that were both lost, so the entire sentence now
>reads:
>
>      <t>(**) - Use of server's principal names having
>	GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname"
>	format, where "service" is the service name specified in the
>	protocol's profile, and "hostname" is the fully qualified host
>	name of the server, is RECOMMENDED.  The desired server name
>  
>
I would change "desired" to "recommended", but otherwise this looks Ok.

>	is generated by calling GSS_Import_name with input_name_type
>	of GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
>	"service@hostname".</t>
>
>Perhaps GS1 should have a similar update, in AUTH48 or so.
>  
>
I can do, if others agree.



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93FGHG2025022; Tue, 3 Oct 2006 08:16:18 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93FGHiQ025021; Tue, 3 Oct 2006 08:16:17 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93FGFHm024988 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 08:16:15 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k93FG4ME031229 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 17:16:08 +0200
From: Simon Josefsson <jas@extundo.com>
To: ietf-sasl@imc.org
Subject: Re: Obtaining credentials in GSSAPI/GS2
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org> <873ba5n3zd.fsf_-_@latte.josefsson.org> <20061003143449.GE1431@binky.Central.Sun.COM>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061003:ietf-sasl@imc.org::9txTKnT3dU3nmq1J:5+o1
Date: Tue, 03 Oct 2006 17:16:04 +0200
In-Reply-To: <20061003143449.GE1431@binky.Central.Sun.COM> (Nicolas Williams's message of "Tue\, 3 Oct 2006 09\:34\:49 -0500")
Message-ID: <87wt7hig5n.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Nicolas Williams <Nicolas.Williams@sun.com> writes:

> On Tue, Oct 03, 2006 at 11:27:50AM +0200, Simon Josefsson wrote:
>> Simon Josefsson <jas@extundo.com> writes:
>> >>   Servers SHOULD use a credential obtained by calling GSS_Acquire_cred
>> >>   or GSS_Add_cred for the GSS_C_NO_NAME desired_name and the OID of the
>> >>   GSS-API mechanism for which this SASL mechanism is registered
>> >> (*). Servers MAY use
>> >>   GSS_C_NO_CREDENTIAL as an acceptor credential handle.  Servers MAY
>> >>   use a credential obtained by calling GSS_Acquire_cred or GSS_Add_cred
>> >>   for the server's principal name(s) (**) and the
>> >>   GSS-API mechanism for which this SASL mechanism is registered.
>> >>
>> >>   (*) - Unlike GSS_Add_cred the GSS_Acquire_cred uses an OID set of
>> >>   GSS-API mechanism as an input parameter.  The OID set can be created
>> >>   by using GSS_Create_empty_OID_set and GSS_Add_OID_set_member.  It can
>> >>   be freed by calling the GSS_Release_oid_set.
>> >>
>> >>   (**) - Use of server's principal names having
>> >>   GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>> >>   where "service" is the service name specified in the protocol's
>> >>   profile, is RECOMMENDED.
>> >>
>> >>   Upon successful establishment of the security context (i.e.
>> >>   GSS_Accept_sec_context returns GSS_S_COMPLETE) the server SHOULD
>> >>   verify that the negotiated GSS-API mechanism is indeed the registered
>> >>   one.  This is done by examining the value of the mech_type
>> >>   parameter returned from the GSS_Accept_sec_context call.  If the
>> >>   value differ SASL authentication MUST be aborted.
>> >>
>> >> (I've edited the text not to reference Kerberos)
>> >
>> > Thanks, this seems good for GS2, but I wonder about the value of this
>> > in GSSAPI.  It seems to make my RFC 2222 conforming implementation
>> > violate the first SHOULD.  I'll bring this up separately...
>> 
>> After re-reading RFC 2222, it seems that the old document was
>> under-specified in this area -- it doesn't discuss how servers should
>> obtain the credentials at all.
>
> Thus the new text in GS1.  Please copy it.

I have, with some modifications (see other posts).

>>                                 However, it may be reasonable to
>> assume that the RFC 2222 server side should be similar to the RFC 2222
>> client side, which implies using GSS_Import_name, and thus breaking
>> the SHOULD above about using GSS_C_NO_NAME.  Both Cyrus SASL and GNU
>> SASL work that way, and thus break the SHOULD above.
>
> It may seem reasonable, but it isn't useful.

Why not?  Popular implementations still do things this way.  If there
is anything wrong with that behaviour, I think it should be brought up
in the "Changes since RFC 2222" section.

>  See the archives.

Pointers would be appreciated...  Is this related to non-hostbased
names?

>> I wonder whether any existing implementations of "GSSAPI" will be
>> updated to follow the above SHOULD.  Given the deployed working base,
>> and no incentive to update GSSAPI beyond RFC 2222, I kind of doubt it.
>
> SHOULD is not MUST.

Understood, but violating a SHOULD typically require a good argument.
I don't see one here.

It seems to me that this change could potentially cause interop
problems with RFC 2222 "GSSAPI" implementations and gssapi-08 draft
"GSSAPI" implementations.  For example, it is not clear that
GSS_C_NO_NAME will lead to using the same server name as using
GSS_Acquire_cred with a server name derived by GSS_Import_name from
"service@hostname".

/Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93F6rf2022632; Tue, 3 Oct 2006 08:06:53 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93F6rxH022629; Tue, 3 Oct 2006 08:06:53 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93F6nen022603 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 08:06:51 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k93F6dLv030363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Oct 2006 17:06:40 +0200
From: Simon Josefsson <jas@extundo.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org> <45226F07.3050901@isode.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061003:ietf-sasl@imc.org::HIsSpryxQf71H6oV:25Cd
X-Hashcash: 1:22:061003:alexey.melnikov@isode.com::jvdE6ASrw5sTc+sM:5ZNP
Date: Tue, 03 Oct 2006 17:06:39 +0200
In-Reply-To: <45226F07.3050901@isode.com> (Alexey Melnikov's message of "Tue\, 03 Oct 2006 15\:09\:11 +0100")
Message-ID: <871wppjv5s.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Alexey Melnikov <alexey.melnikov@isode.com> writes:

> Simon Josefsson wrote:
>
>>>>4.2.  Context Token
>>>>
>>>[...]
>>>    
>>>>  The client calls GSS_Init_sec_context, passing in
>>>>  input_context_handle of 0 (initially), mech_type of the GSSAPI
>>>>  mechanism for which this SASL mechanism is registered, the
>>>>  chan_binding is set to NULL, and targ_name equal to output_name from
>>>>  GSS_Import_Name called with input_name_type of
>>>>  GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
>>>>
>>>The GS1 has the note marker (*) after the "GSS_C_NT_HOSTBASED_SERVICE",
>>>the note reads:
>>>
>>>  (*) - Clients MAY use name types other than
>>>  GSS_C_NT_HOSTBASED_SERVICE to import servers' acceptor names, but
>>>  only when they have a priori knowledge that the servers support
>>>  alternate name types.  Otherwise clients MUST use
>>>  GSS_C_NT_HOSTBASED_SERVICE for importing acceptor names.
>>>
>>>This is to address recent Nico's proposal to allow for domain based names.
>>>
>>I've added this.
>>
>>Is something similar needed for the server side too?
>
> I thinks something like (from GS1) is sufficient:
>
>   (**) - Use of server's principal names having
>   GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>   where "service" is the service name specified in the protocol's
>   profile, is RECOMMENDED.
>
> So basically this allows for other name types.

OK.  I added the explanation for "hostname" and the reference to
GSS_Import_name, that were both lost, so the entire sentence now
reads:

      <t>(**) - Use of server's principal names having
	GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname"
	format, where "service" is the service name specified in the
	protocol's profile, and "hostname" is the fully qualified host
	name of the server, is RECOMMENDED.  The desired server name
	is generated by calling GSS_Import_name with input_name_type
	of GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
	"service@hostname".</t>

Perhaps GS1 should have a similar update, in AUTH48 or so.

/Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93EYsvN002965; Tue, 3 Oct 2006 07:34:54 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93EYswp002964; Tue, 3 Oct 2006 07:34:54 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from nwkea-mail-1.sun.com (nwkea-mail-1.sun.com [192.18.42.13]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93EYqBV002939 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 07:34:53 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail3brm.Central.Sun.COM ([129.147.62.199]) by nwkea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k93EYqgH008969 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 07:34:52 -0700 (PDT)
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by centralmail3brm.Central.Sun.COM (8.13.6+Sun/8.13.6/ENSMAIL,v2.2) with ESMTP id k93EYpL5009773 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 08:34:51 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.6+Sun/8.13.6) with ESMTP id k93EYoQf029184; Tue, 3 Oct 2006 09:34:50 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.6+Sun/8.13.6/Submit) id k93EYnEu029183; Tue, 3 Oct 2006 09:34:49 -0500 (CDT)
Date: Tue, 3 Oct 2006 09:34:49 -0500
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Simon Josefsson <jas@extundo.com>
Cc: ietf-sasl@imc.org
Subject: Re: Obtaining credentials in GSSAPI/GS2 (was: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt)
Message-ID: <20061003143449.GE1431@binky.Central.Sun.COM>
Mail-Followup-To: Simon Josefsson <jas@extundo.com>, ietf-sasl@imc.org
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org> <873ba5n3zd.fsf_-_@latte.josefsson.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <873ba5n3zd.fsf_-_@latte.josefsson.org>
User-Agent: Mutt/1.5.7i
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

On Tue, Oct 03, 2006 at 11:27:50AM +0200, Simon Josefsson wrote:
> Simon Josefsson <jas@extundo.com> writes:
> >>   Servers SHOULD use a credential obtained by calling GSS_Acquire_cred
> >>   or GSS_Add_cred for the GSS_C_NO_NAME desired_name and the OID of the
> >>   GSS-API mechanism for which this SASL mechanism is registered
> >> (*). Servers MAY use
> >>   GSS_C_NO_CREDENTIAL as an acceptor credential handle.  Servers MAY
> >>   use a credential obtained by calling GSS_Acquire_cred or GSS_Add_cred
> >>   for the server's principal name(s) (**) and the
> >>   GSS-API mechanism for which this SASL mechanism is registered.
> >>
> >>   (*) - Unlike GSS_Add_cred the GSS_Acquire_cred uses an OID set of
> >>   GSS-API mechanism as an input parameter.  The OID set can be created
> >>   by using GSS_Create_empty_OID_set and GSS_Add_OID_set_member.  It can
> >>   be freed by calling the GSS_Release_oid_set.
> >>
> >>   (**) - Use of server's principal names having
> >>   GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
> >>   where "service" is the service name specified in the protocol's
> >>   profile, is RECOMMENDED.
> >>
> >>   Upon successful establishment of the security context (i.e.
> >>   GSS_Accept_sec_context returns GSS_S_COMPLETE) the server SHOULD
> >>   verify that the negotiated GSS-API mechanism is indeed the registered
> >>   one.  This is done by examining the value of the mech_type
> >>   parameter returned from the GSS_Accept_sec_context call.  If the
> >>   value differ SASL authentication MUST be aborted.
> >>
> >> (I've edited the text not to reference Kerberos)
> >
> > Thanks, this seems good for GS2, but I wonder about the value of this
> > in GSSAPI.  It seems to make my RFC 2222 conforming implementation
> > violate the first SHOULD.  I'll bring this up separately...
> 
> After re-reading RFC 2222, it seems that the old document was
> under-specified in this area -- it doesn't discuss how servers should
> obtain the credentials at all.

Thus the new text in GS1.  Please copy it.

>                                 However, it may be reasonable to
> assume that the RFC 2222 server side should be similar to the RFC 2222
> client side, which implies using GSS_Import_name, and thus breaking
> the SHOULD above about using GSS_C_NO_NAME.  Both Cyrus SASL and GNU
> SASL work that way, and thus break the SHOULD above.

It may seem reasonable, but it isn't useful.  See the archives.

> I wonder whether any existing implementations of "GSSAPI" will be
> updated to follow the above SHOULD.  Given the deployed working base,
> and no incentive to update GSSAPI beyond RFC 2222, I kind of doubt it.

SHOULD is not MUST.

Nico
-- 



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93ESfxO000991; Tue, 3 Oct 2006 07:28:41 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93ESf8P000990; Tue, 3 Oct 2006 07:28:41 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93EScJm000976 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 07:28:40 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k93ESQq6026151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Oct 2006 16:28:31 +0200
From: Simon Josefsson <jas@extundo.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org> <45226B74.1090704@isode.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061003:ietf-sasl@imc.org::IGyZG/9BT3sW38QS:W1N
X-Hashcash: 1:22:061003:alexey.melnikov@isode.com::a6Yl0d/dbi2oOhQB:2WC5
Date: Tue, 03 Oct 2006 16:28:26 +0200
In-Reply-To: <45226B74.1090704@isode.com> (Alexey Melnikov's message of "Tue\, 03 Oct 2006 14\:53\:56 +0100")
Message-ID: <87ejtpjwxh.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Alexey Melnikov <alexey.melnikov@isode.com> writes:

>>>>  The server passes the first client response to GSS_Accept_sec_context
>>>>      
>>>>
>>>I suggest s/first/initial, as "initial client response" is a SASL term.
>>>    
>>>
>>
>>GS2 should support a missing "initial client response", so it is
>>actually the first context token received by the server which should
>>be used.  Does this looks better?
>>
>>    <t>The server passes the first context token to
>>      GSS_Accept_sec_context as input_token, setting
>>
> Yes.
> At least "first context token" doesn't bring association with "initial
> client response".

Right.

>>>  Servers SHOULD use a credential obtained by calling GSS_Acquire_cred
>>>  or GSS_Add_cred for the GSS_C_NO_NAME desired_name and the OID of the
>>>  GSS-API mechanism for which this SASL mechanism is registered
>>>(*). Servers MAY use
>>>  GSS_C_NO_CREDENTIAL as an acceptor credential handle.  Servers MAY
>>>  use a credential obtained by calling GSS_Acquire_cred or GSS_Add_cred
>>>  for the server's principal name(s) (**) and the
>>>  GSS-API mechanism for which this SASL mechanism is registered.
>>>
>>>  (*) - Unlike GSS_Add_cred the GSS_Acquire_cred uses an OID set of
>>>  GSS-API mechanism as an input parameter.  The OID set can be created
>>>  by using GSS_Create_empty_OID_set and GSS_Add_OID_set_member.  It can
>>>  be freed by calling the GSS_Release_oid_set.
>>>
>>>  (**) - Use of server's principal names having
>>>  GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>>>  where "service" is the service name specified in the protocol's
>>>  profile, is RECOMMENDED.
>>>
>>>  Upon successful establishment of the security context (i.e.
>>>  GSS_Accept_sec_context returns GSS_S_COMPLETE) the server SHOULD
>>>  verify that the negotiated GSS-API mechanism is indeed the registered
>>>  one.  This is done by examining the value of the mech_type
>>>  parameter returned from the GSS_Accept_sec_context call.  If the
>>>  value differ SASL authentication MUST be aborted.
>>>
>>>(I've edited the text not to reference Kerberos)
>>>    
>>
>>Thanks, this seems good for GS2, but I wonder about the value of this
>>in GSSAPI.  It seems to make my RFC 2222 conforming implementation
>>violate the first SHOULD.  I'll bring this up separately...
>>
>>In the last paragraph, I changed a SHOULD into MUST, since the last
>>MUST in that paragraph implies that the first SHOULD is followed.
>>  
>>
> Actually the second MUST is conditional on the first SHOULD. So I don't
> see why the SHOULD has to change into a MUST.
> If I remember correctly the SHOULD here is to accommodate
> implementations which only support a single GSS-API mechanism.

Ah, I see.  Makes sense.  I have reverted this.

>>>And the text quoted above is followed by additional text which is not
>>>currently in GS2:
>>>
>>>  Upon successful establishment of the security context and if the
>>>  server used GSS_C_NO_NAME/GSS_C_NO_CREDENTIAL to create acceptor
>>>  credential handle, the server SHOULD also check using the
>>>  GSS_Inquire_context that the target_name used by the client matches:
>>>
>>>  -  the GSS_C_NT_HOSTBASED_SERVICE "service@hostname" name syntax,
>>>     where "service" is the service name specified in the application
>>>     protocol's profile.
>>>
>>>  When GSS_Accept_sec_context returns GSS_S_COMPLETE, the server
>>>  examines the context to ensure that it provides a level of protection
>>>  permitted by the server's security policy.
>>>    
>>
>>Thanks, I added this, but changed the SHOULD into MUST, because
>>otherwise it seems we open up to a mitm.
>
> No, the SHOULD is here because the server could have used a specific
> principal during GSS_Import_Name. In such case there would be no need to
> do the check.

The text applies only when GSS_C_NO_NAME and/or GSS_C_NO_CREDENTIAL
was used, and in that case I think the test is necessary.  Or Is there
another reason to not do the test?

>>I didn't include this part:
>>  
>>
>>> In particular, if the
>>>  integ_avail flag is not set in the context, then no security layer
>>>  can be offered or accepted.  If the conf_avail flag is not set in the
>>>  context, then no security layer with confidentiality can be offered
>>>  or accepted.
>>>    
>>>
>>
>>Because I think it interacts badly with the no-integrity cases that
>>GS2 has to support.  This should likely be revisited later on.
>
> I don't understand, can you explain?

Right now, adding the text would be incorrect because when
GSS_Accept_sec_context returns GSS_S_COMPLETE and integ_avail changed,
there is no longer any possibility to "offer" a different security
layer, if the mechanism supported PROT_READY.  The offer of a security
layer was already sent earlier.  This is one change between GSSAPI and
GS2.

I suspect there will be two cases:

1) The mechanism doesn't support integrity/confidentiality: no wrap
token is sent at all, and there is no need to check the flags.

2) The mechanism support integrity and/or confidentiality: if one
security layer was requested but it turns out later that
GSS_Accept_sec_context cannot accommodate that particular security
layer (e.g., because the credentials doesn't permit it), the
authentication fails.  (This may be sub-optimal, but I'm not sure how
to improve it, or if anyone cares.)

This relates to support non-integrity-capable GSSAPI mechanisms, a
change that I haven't incorporated yet.

>>>>4.3.2.  GSS_Wrap input for server responses
>>>>      
>>>>
>>>[...]
>>>    
>>>
>>>>  The "server_qop" field integer indicate the selected quality of
>>>>  protection.
>>>>      
>>>>
>>>I suggest to add:
>>>
>>> It must be one of the values specified by the client in
>>>"client_qops"/"client_cbqops"
>>>
>>>And similar text for "client_qop" in 4.3.4.
>>>    
>>
>>Actually, no.  I think it would be useful to be able to specify a
>>different value, if you can't support any of the proposed values.  It
>>is then up to the other side to reject the selection or not.
>
> I suggest you document this, as this differs from GS1.

Good idea, I have added to section 9:

  <t>The "client_qop" and "server_qop" will contains the chosen
    security layer.</t>

  <t>Note that "client_qop" and "server_qop" MAY indicate a quality of
    protection that was not offered by the server and client,
    respectively.  This SHOULD only be used when the server or client
    (respectively) would otherwise fail the entire authentication
    exchange.  The server/client that receives a "client_qop"/
    "server_qop" MUST verify that it corresponds to an acceptable
    security level.</t>

The updated document is available from:

http://josefsson.org/sasl-gs2/draft-ietf-sasl-gs2.txt

with diff against -02:

http://josefsson.org/sasl-gs2/draft-ietf-sasl-gs2-from--02.diff.html

Thanks,
Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93E9JNH088507; Tue, 3 Oct 2006 07:09:19 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93E9JN0088506; Tue, 3 Oct 2006 07:09:19 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93E9F5j088471 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 07:09:18 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.109] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RSJvCgBrFUJ8@rufus.isode.com>; Tue, 3 Oct 2006 15:09:14 +0100
Message-ID: <45226F07.3050901@isode.com>
Date: Tue, 03 Oct 2006 15:09:11 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Simon Josefsson <jas@extundo.com>
CC: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org>	<450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org>
In-Reply-To: <87fye5n5o6.fsf@latte.josefsson.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Simon Josefsson wrote:

>>>4.2.  Context Token
>>>
>>[...]
>>    
>>>  The client calls GSS_Init_sec_context, passing in
>>>  input_context_handle of 0 (initially), mech_type of the GSSAPI
>>>  mechanism for which this SASL mechanism is registered, the
>>>  chan_binding is set to NULL, and targ_name equal to output_name from
>>>  GSS_Import_Name called with input_name_type of
>>>  GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
>>>
>>The GS1 has the note marker (*) after the "GSS_C_NT_HOSTBASED_SERVICE",
>>the note reads:
>>
>>  (*) - Clients MAY use name types other than
>>  GSS_C_NT_HOSTBASED_SERVICE to import servers' acceptor names, but
>>  only when they have a priori knowledge that the servers support
>>  alternate name types.  Otherwise clients MUST use
>>  GSS_C_NT_HOSTBASED_SERVICE for importing acceptor names.
>>
>>This is to address recent Nico's proposal to allow for domain based names.
>>
>I've added this.
>
>Is something similar needed for the server side too?

I thinks something like (from GS1) is sufficient:

   (**) - Use of server's principal names having
   GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
   where "service" is the service name specified in the protocol's
   profile, is RECOMMENDED.

So basically this allows for other name types.

>>[...]
>>    
>>>  If the client will be requesting a security
>>>  layer, it MUST also supply to the GSS_Init_sec_context a
>>>  mutual_req_flag of TRUE, a sequence_req_flag of TRUE, and an
>>>  integ_req_flag of TRUE.  If the client will be requesting a security
>>>  layer providing confidentiality protection, it MUST also supply to
>>>  the GSS_Init_sec_context a conf_req_flag of TRUE.
>>>      
>>>
>>This text got replaced with the following in GS1:
>>
>>  When calling the GSS_Init_sec_context the client
>>  MUST pass the integ_req_flag of TRUE.  If the client will be
>>  requesting a security layer, it MUST also supply to the
>>  GSS_Init_sec_context a mutual_req_flag of TRUE, and a
>>  sequence_req_flag of TRUE.  If the client will be requesting a
>>  security layer providing confidentiality protection, it MUST also
>>  supply to the GSS_Init_sec_context a conf_req_flag of TRUE.    
>>
>Thanks, I had already made that change.  I had also added:
>
>      The client MUST
>      verify that the requested flags become enabled in the
>      context.
>
>Because, if I understand correctly, setting the flags does not
>necessarily mean that they will be set, so the client has to check
>that they were indeed enabled.

That seems reasonable.




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93DsAZ5083816; Tue, 3 Oct 2006 06:54:10 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k93DsAFr083815; Tue, 3 Oct 2006 06:54:10 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k93Ds822083804 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 06:54:09 -0700 (MST) (envelope-from alexey.melnikov@isode.com)
Received: from [172.16.2.109] (shiny.isode.com [62.3.217.250])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <RSJrdwBrFWQ9@rufus.isode.com>; Tue, 3 Oct 2006 14:54:03 +0100
Message-ID: <45226B74.1090704@isode.com>
Date: Tue, 03 Oct 2006 14:53:56 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Simon Josefsson <jas@extundo.com>
CC: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org>	<450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org>
In-Reply-To: <87fye5n5o6.fsf@latte.josefsson.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Simon Josefsson wrote:

>>>4.1.  SASL Tokens
>>>
>>>  All top-level SASL packets for the GS2 mechanism family follow the
>>>  following format:
>>>      
>>>
>>I would suggest avoid using the term SASL packet, as it usually refers to
>>SASL security layer. Something like "SASL authentication exchange packets"
>>would be better here.
>>    
>>
>
>RFC 4422 seems to use the term "messages" here, so I changed this
>into:
>
><section title="SASL Authentication Exchange Message Format">
>
>  <section title="SASL Messages">
>
>    <t>All top-level SASL authentication exchange messages for the GS2
>      mechanism family follow the following format:</t>
>  
>
Looks good to me.
[...]

>>>  The server passes the first client response to GSS_Accept_sec_context
>>>      
>>>
>>I suggest s/first/initial, as "initial client response" is a SASL term.
>>    
>>
>
>GS2 should support a missing "initial client response", so it is
>actually the first context token received by the server which should
>be used.  Does this looks better?
>
>    <t>The server passes the first context token to
>      GSS_Accept_sec_context as input_token, setting
>
Yes.
At least "first context token" doesn't bring association with "initial
client response".

>>>the chan_binding set to NULL, and acceptor_cred_handle
>>>  equal to output_cred_handle from GSS_Acquire_cred called with
>>>  desired_name equal to output_name from GSS_Import_name with
>>>  input_name_type of GSS_C_NT_HOSTBASED_SERVICE and input_name_string
>>>  of "service@hostname" where "service" is the service name specified
>>>  in the protocol's profile, and "hostname" is the fully qualified host
>>>  name of the server.
>>>      
>>>
>>The text about acceptor_cred_handle got replaced with the following in GS1:
>>
>>  and a suitable acceptor_cred_handle (see below).
>>
>>and later:
>>
>>  Servers SHOULD use a credential obtained by calling GSS_Acquire_cred
>>  or GSS_Add_cred for the GSS_C_NO_NAME desired_name and the OID of the
>>  GSS-API mechanism for which this SASL mechanism is registered
>>(*). Servers MAY use
>>  GSS_C_NO_CREDENTIAL as an acceptor credential handle.  Servers MAY
>>  use a credential obtained by calling GSS_Acquire_cred or GSS_Add_cred
>>  for the server's principal name(s) (**) and the
>>  GSS-API mechanism for which this SASL mechanism is registered.
>>
>>  (*) - Unlike GSS_Add_cred the GSS_Acquire_cred uses an OID set of
>>  GSS-API mechanism as an input parameter.  The OID set can be created
>>  by using GSS_Create_empty_OID_set and GSS_Add_OID_set_member.  It can
>>  be freed by calling the GSS_Release_oid_set.
>>
>>  (**) - Use of server's principal names having
>>  GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>>  where "service" is the service name specified in the protocol's
>>  profile, is RECOMMENDED.
>>
>>  Upon successful establishment of the security context (i.e.
>>  GSS_Accept_sec_context returns GSS_S_COMPLETE) the server SHOULD
>>  verify that the negotiated GSS-API mechanism is indeed the registered
>>  one.  This is done by examining the value of the mech_type
>>  parameter returned from the GSS_Accept_sec_context call.  If the
>>  value differ SASL authentication MUST be aborted.
>>
>>(I've edited the text not to reference Kerberos)
>>    
>
>Thanks, this seems good for GS2, but I wonder about the value of this
>in GSSAPI.  It seems to make my RFC 2222 conforming implementation
>violate the first SHOULD.  I'll bring this up separately...
>
>In the last paragraph, I changed a SHOULD into MUST, since the last
>MUST in that paragraph implies that the first SHOULD is followed.
>  
>
Actually the second MUST is conditional on the first SHOULD. So I don't
see why the SHOULD has to change into a MUST.
If I remember correctly the SHOULD here is to accommodate
implementations which only support a single GSS-API mechanism.

>>And the text quoted above is followed by additional text which is not
>>currently in GS2:
>>
>>  Upon successful establishment of the security context and if the
>>  server used GSS_C_NO_NAME/GSS_C_NO_CREDENTIAL to create acceptor
>>  credential handle, the server SHOULD also check using the
>>  GSS_Inquire_context that the target_name used by the client matches:
>>
>>  -  the GSS_C_NT_HOSTBASED_SERVICE "service@hostname" name syntax,
>>     where "service" is the service name specified in the application
>>     protocol's profile.
>>
>>  When GSS_Accept_sec_context returns GSS_S_COMPLETE, the server
>>  examines the context to ensure that it provides a level of protection
>>  permitted by the server's security policy.
>>    
>
>Thanks, I added this, but changed the SHOULD into MUST, because
>otherwise it seems we open up to a mitm.

No, the SHOULD is here because the server could have used a specific
principal during GSS_Import_Name. In such case there would be no need to
do the check.

>I didn't include this part:
>  
>
>> In particular, if the
>>  integ_avail flag is not set in the context, then no security layer
>>  can be offered or accepted.  If the conf_avail flag is not set in the
>>  context, then no security layer with confidentiality can be offered
>>  or accepted.
>>    
>>
>
>Because I think it interacts badly with the no-integrity cases that
>GS2 has to support.  This should likely be revisited later on.

I don't understand, can you explain?
[...]

>>>  bitmask and local policy.
>>>      
>>>
>>>  Four input formats to the GSS_Wrap function are defined.
>>>      
>>>
>>This is confusing. Maybe "two pairs of input formats"?  
>>
>
>I changed it to:
>
>    <t>Two pairs of input formats to the GSS_Wrap function are
>      defined.  The first pair is used when the client sends the
>      GSS_Wrap token first and the server responds.  The other pair is
>      used when the server sends the GSS_Wrap token first and the
>      client responds.</t>

Looks good.
[...]

>>>4.3.2.  GSS_Wrap input for server responses
>>>      
>>>
>>[...]
>>    
>>
>>>  The "server_qop" field integer indicate the selected quality of
>>>  protection.
>>>      
>>>
>>I suggest to add:
>>
>> It must be one of the values specified by the client in
>>"client_qops"/"client_cbqops"
>>
>>And similar text for "client_qop" in 4.3.4.
>>    
>
>Actually, no.  I think it would be useful to be able to specify a
>different value, if you can't support any of the proposed values.  It
>is then up to the other side to reject the selection or not.

I suggest you document this, as this differs from GS1.

>The messages is integrity protected, so there is no downgrade attack,
>that I can see.

Alexey




Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k939S2Mb093135; Tue, 3 Oct 2006 02:28:02 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k939S26I093134; Tue, 3 Oct 2006 02:28:02 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k939S0NB093117 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 02:28:01 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k939RobO023912 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 11:27:53 +0200
From: Simon Josefsson <jas@extundo.com>
To: ietf-sasl@imc.org
Subject: Obtaining credentials in GSSAPI/GS2 (was: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt)
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com> <87fye5n5o6.fsf@latte.josefsson.org>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061003:ietf-sasl@imc.org::sck+8F6F5WRVAEUh:5J3I
X-Hashcash: 1:22:061003:alexey.melnikov@isode.com::rj1tYxD0pVwgmZiY:RdSY
Date: Tue, 03 Oct 2006 11:27:50 +0200
In-Reply-To: <87fye5n5o6.fsf@latte.josefsson.org> (Simon Josefsson's message of "Tue\, 03 Oct 2006 10\:51\:21 +0200")
Message-ID: <873ba5n3zd.fsf_-_@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Simon Josefsson <jas@extundo.com> writes:

>>   Servers SHOULD use a credential obtained by calling GSS_Acquire_cred
>>   or GSS_Add_cred for the GSS_C_NO_NAME desired_name and the OID of the
>>   GSS-API mechanism for which this SASL mechanism is registered
>> (*). Servers MAY use
>>   GSS_C_NO_CREDENTIAL as an acceptor credential handle.  Servers MAY
>>   use a credential obtained by calling GSS_Acquire_cred or GSS_Add_cred
>>   for the server's principal name(s) (**) and the
>>   GSS-API mechanism for which this SASL mechanism is registered.
>>
>>   (*) - Unlike GSS_Add_cred the GSS_Acquire_cred uses an OID set of
>>   GSS-API mechanism as an input parameter.  The OID set can be created
>>   by using GSS_Create_empty_OID_set and GSS_Add_OID_set_member.  It can
>>   be freed by calling the GSS_Release_oid_set.
>>
>>   (**) - Use of server's principal names having
>>   GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>>   where "service" is the service name specified in the protocol's
>>   profile, is RECOMMENDED.
>>
>>   Upon successful establishment of the security context (i.e.
>>   GSS_Accept_sec_context returns GSS_S_COMPLETE) the server SHOULD
>>   verify that the negotiated GSS-API mechanism is indeed the registered
>>   one.  This is done by examining the value of the mech_type
>>   parameter returned from the GSS_Accept_sec_context call.  If the
>>   value differ SASL authentication MUST be aborted.
>>
>> (I've edited the text not to reference Kerberos)
>
> Thanks, this seems good for GS2, but I wonder about the value of this
> in GSSAPI.  It seems to make my RFC 2222 conforming implementation
> violate the first SHOULD.  I'll bring this up separately...

After re-reading RFC 2222, it seems that the old document was
under-specified in this area -- it doesn't discuss how servers should
obtain the credentials at all.  However, it may be reasonable to
assume that the RFC 2222 server side should be similar to the RFC 2222
client side, which implies using GSS_Import_name, and thus breaking
the SHOULD above about using GSS_C_NO_NAME.  Both Cyrus SASL and GNU
SASL work that way, and thus break the SHOULD above.

I wonder whether any existing implementations of "GSSAPI" will be
updated to follow the above SHOULD.  Given the deployed working base,
and no incentive to update GSSAPI beyond RFC 2222, I kind of doubt it.

/Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k938sdXB083559; Tue, 3 Oct 2006 01:54:39 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k938sdvE083558; Tue, 3 Oct 2006 01:54:39 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k938scAG083546 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 01:54:38 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k938sUrq020175 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Oct 2006 10:54:31 +0200
From: Simon Josefsson <jas@extundo.com>
To: Sam Hartman <hartmans-ietf@mit.edu>
Cc: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <87r6yvzzp5.fsf@latte.josefsson.org> <tslu03blbjd.fsf@cz.mit.edu> <20060913214400.GH3764@binky.Central.Sun.COM>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061003:hartmans-ietf@mit.edu::KyAy2Ve2lizkUjya:7Sfs
X-Hashcash: 1:22:061003:ietf-sasl@imc.org::YWoHC8IKsbFdDAse:OPnD
Date: Tue, 03 Oct 2006 10:54:30 +0200
In-Reply-To: <20060913214400.GH3764@binky.Central.Sun.COM> (Nicolas Williams's message of "Wed\, 13 Sep 2006 16\:44\:00 -0500")
Message-ID: <87ac4dn5ix.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Nicolas Williams <Nicolas.Williams@sun.com> writes:

> On Wed, Sep 13, 2006 at 05:08:38PM -0400, Sam Hartman wrote:
>> Hmm.  Do you want to actually length count everything in both teh
>> client and server messages so you can have extensibility in the
>> future?
>
> Good point.  I think all that would be required would be to add a length
> of authzid field to the wrap token data, and standard MUST NOT send/MUST
> ignore text.

I agree.

/Simon



Received: from balder-227.proper.com (localhost [127.0.0.1]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k938pTWu083153; Tue, 3 Oct 2006 01:51:29 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
Received: (from majordom@localhost) by balder-227.proper.com (8.13.5/8.13.5/Submit) id k938pT0R083151; Tue, 3 Oct 2006 01:51:29 -0700 (MST) (envelope-from owner-ietf-sasl@mail.imc.org)
X-Authentication-Warning: balder-227.proper.com: majordom set sender to owner-ietf-sasl@mail.imc.org using -f
Received: from yxa.extundo.com (178.230.13.217.in-addr.dgcsystems.net [217.13.230.178]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k938pQOo083130 for <ietf-sasl@imc.org>; Tue, 3 Oct 2006 01:51:27 -0700 (MST) (envelope-from jas@extundo.com)
Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k938pLxB019595 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 3 Oct 2006 10:51:22 +0200
From: Simon Josefsson <jas@extundo.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gs2-02.txt
References: <7.0.1.0.0.20060831104340.03a589a0@OpenLDAP.org> <450B3B77.2010406@isode.com>
OpenPGP: id=B565716F; url=http://josefsson.org/key.txt
X-Hashcash: 1:22:061003:ietf-sasl@imc.org::y14x6MK2lxxjJY6Q:Hegh
X-Hashcash: 1:22:061003:alexey.melnikov@isode.com::ZhzsRXBeqo9lpbjn:p3jR
Date: Tue, 03 Oct 2006 10:51:21 +0200
In-Reply-To: <450B3B77.2010406@isode.com> (Alexey Melnikov's message of "Sat\, 16 Sep 2006 00\:47\:03 +0100")
Message-ID: <87fye5n5o6.fsf@latte.josefsson.org>
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv
X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com
X-Virus-Status: Clean
Sender: owner-ietf-sasl@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-sasl/mail-archive/>
List-ID: <ietf-sasl.imc.org>
List-Unsubscribe: <mailto:ietf-sasl-request@imc.org?body=unsubscribe>

Alexey Melnikov <alexey.melnikov@isode.com> writes:

> My review comments are below. Some of them you probably already
> addressed and some of them are nitpicking.

Thanks for your detailed review!  I'm sorry it took so long to
respond.

>>4.1.  SASL Tokens
>>
>>   All top-level SASL packets for the GS2 mechanism family follow the
>>   following format:
>
> I would suggest avoid using the term SASL packet, as it usually refers to
> SASL security layer. Something like "SASL authentication exchange packets"
> would be better here.

RFC 4422 seems to use the term "messages" here, so I changed this
into:

<section title="SASL Authentication Exchange Message Format">

  <section title="SASL Messages">

    <t>All top-level SASL authentication exchange messages for the GS2
      mechanism family follow the following format:</t>

>>4.2.  Context Token
>
> [...]
>
>>   The client calls GSS_Init_sec_context, passing in
>>   input_context_handle of 0 (initially), mech_type of the GSSAPI
>>   mechanism for which this SASL mechanism is registered, the
>>   chan_binding is set to NULL, and targ_name equal to output_name from
>>   GSS_Import_Name called with input_name_type of
>>   GSS_C_NT_HOSTBASED_SERVICE and input_name_string of
>
> The GS1 has the note marker (*) after the "GSS_C_NT_HOSTBASED_SERVICE",
> the note reads:
>
>   (*) - Clients MAY use name types other than
>   GSS_C_NT_HOSTBASED_SERVICE to import servers' acceptor names, but
>   only when they have a priori knowledge that the servers support
>   alternate name types.  Otherwise clients MUST use
>   GSS_C_NT_HOSTBASED_SERVICE for importing acceptor names.
>
> This is to address recent Nico's proposal to allow for domain based names.

I've added this.

Is something similar needed for the server side too?

> [...]
>
>>   If the client will be requesting a security
>>   layer, it MUST also supply to the GSS_Init_sec_context a
>>   mutual_req_flag of TRUE, a sequence_req_flag of TRUE, and an
>>   integ_req_flag of TRUE.  If the client will be requesting a security
>>   layer providing confidentiality protection, it MUST also supply to
>>   the GSS_Init_sec_context a conf_req_flag of TRUE.
>
> This text got replaced with the following in GS1:
>
>   When calling the GSS_Init_sec_context the client
>   MUST pass the integ_req_flag of TRUE.  If the client will be
>   requesting a security layer, it MUST also supply to the
>   GSS_Init_sec_context a mutual_req_flag of TRUE, and a
>   sequence_req_flag of TRUE.  If the client will be requesting a
>   security layer providing confidentiality protection, it MUST also
>   supply to the GSS_Init_sec_context a conf_req_flag of TRUE.

Thanks, I had already made that change.  I had also added:

  The client MUST
      verify that the requested flags become enabled in the
      context.

Because, if I understand correctly, setting the flags does not
necessarily mean that they will be set, so the client has to check
that they were indeed enabled.

>>   If GSS_Init_sec_context returns GSS_S_CONTINUE_NEEDED, then the client
>>   expect the server to issue a token in a subsequent challenge or as
>>   additional information to the outcome of the authentication.
>
> I suggest adding before this sentence (as in GS1):
>
>   The client then responds with the resulting output_token.
>
> otherwise it is not clear what happens to the generated token.

Good idea, added.

>>   The server passes the first client response to GSS_Accept_sec_context
>
> I suggest s/first/initial, as "initial client response" is a SASL term.

GS2 should support a missing "initial client response", so it is
actually the first context token received by the server which should
be used.  Does this looks better?

    <t>The server passes the first context token to
      GSS_Accept_sec_context as input_token, setting

>>   as input_token, setting input_context_handle to 0 (initially),
>>   mech_type of the GSSAPI mechanism for which this SASL mechanism is
>>   registered,
>
> Delete description of the mech_type parameter, as it is an output parameter
> of GSS_Accept_sec_context.

Oops!  Good catch.  Fixed.

>> the chan_binding set to NULL, and acceptor_cred_handle
>>   equal to output_cred_handle from GSS_Acquire_cred called with
>>   desired_name equal to output_name from GSS_Import_name with
>>   input_name_type of GSS_C_NT_HOSTBASED_SERVICE and input_name_string
>>   of "service@hostname" where "service" is the service name specified
>>   in the protocol's profile, and "hostname" is the fully qualified host
>>   name of the server.
>
> The text about acceptor_cred_handle got replaced with the following in GS1:
>
>   and a suitable acceptor_cred_handle (see below).
>
> and later:
>
>   Servers SHOULD use a credential obtained by calling GSS_Acquire_cred
>   or GSS_Add_cred for the GSS_C_NO_NAME desired_name and the OID of the
>   GSS-API mechanism for which this SASL mechanism is registered
> (*). Servers MAY use
>   GSS_C_NO_CREDENTIAL as an acceptor credential handle.  Servers MAY
>   use a credential obtained by calling GSS_Acquire_cred or GSS_Add_cred
>   for the server's principal name(s) (**) and the
>   GSS-API mechanism for which this SASL mechanism is registered.
>
>   (*) - Unlike GSS_Add_cred the GSS_Acquire_cred uses an OID set of
>   GSS-API mechanism as an input parameter.  The OID set can be created
>   by using GSS_Create_empty_OID_set and GSS_Add_OID_set_member.  It can
>   be freed by calling the GSS_Release_oid_set.
>
>   (**) - Use of server's principal names having
>   GSS_C_NT_HOSTBASED_SERVICE name type and "service@hostname" format,
>   where "service" is the service name specified in the protocol's
>   profile, is RECOMMENDED.
>
>   Upon successful establishment of the security context (i.e.
>   GSS_Accept_sec_context returns GSS_S_COMPLETE) the server SHOULD
>   verify that the negotiated GSS-API mechanism is indeed the registered
>   one.  This is done by examining the value of the mech_type
>   parameter returned from the GSS_Accept_sec_context call.  If the
>   value differ SASL authentication MUST be aborted.
>
> (I've edited the text not to reference Kerberos)

Thanks, this seems good for GS2, but I wonder about the value of this
in GSSAPI.  It seems to make my RFC 2222 conforming implementation
violate the first SHOULD.  I'll bring this up separately...

In the last paragraph, I changed a SHOULD into MUST, since the last
MUST in that paragraph implies that the first SHOULD is followed.

> And the text quoted above is followed by additional text which is not
> currently in GS2:
>
>   Upon successful establishment of the security context and if the
>   server used GSS_C_NO_NAME/GSS_C_NO_CREDENTIAL to create acceptor
>   credential handle, the server SHOULD also check using the
>   GSS_Inquire_context that the target_name used by the client matches:
>
>   -  the GSS_C_NT_HOSTBASED_SERVICE "service@hostname" name syntax,
>      where "service" is the service name specified in the application
>      protocol's profile.
>
>   When GSS_Accept_sec_context returns GSS_S_COMPLETE, the server
>   examines the context to ensure that it provides a level of protection
>   permitted by the server's security policy.

Thanks, I added this, but changed the SHOULD into MUST, because
otherwise it seems we open up to a mitm.

I didn't include this part:

>  In particular, if the
>   integ_avail flag is not set in the context, then no security layer
>   can be offered or accepted.  If the conf_avail flag is not set in the
>   context, then no security layer with confidentiality can be offered
>   or accepted.

Because I think it interacts badly with the no-integrity cases that
GS2 has to support.  This should likely be revisited later on.

>>4.3.  Wrap Token
>
> [...]
>>   The entity that sends its first Wrap token will have to specify a
>>   bitmap of supported and preferred quality of protection schemes.  The
>>   entity that reply to the Wrap tokens will pick a scheme, based on the
>
> typo: replies

Thanks.

>>   bitmask and local policy.
>
>>   Four input formats to the GSS_Wrap function are defined.
>
> This is confusing. Maybe "two pairs of input formats"?

I changed it to:

    <t>Two pairs of input formats to the GSS_Wrap function are
      defined.  The first pair is used when the client sends the
      GSS_Wrap token first and the server responds.  The other pair is
      used when the server sends the GSS_Wrap token first and the
      client responds.</t>

>>  The first
>>   two input formats are used when the client sends the GSS_Wrap token
>>   first and the server reponds.  The other two input formats are used
>
> typo: responds

Thanks.

>>   when the server sends the GSS_Wrap token first and the client
>>   responds.
>
>>4.3.1.  GSS_Wrap input for client requests
>
> Here and in other 4.3.* sections: using SASL terms, the client sends
> "responses", while the server sends "challenges".
>
> [...]

I tried to use different terms here.  It is somewhat problematic,
because we are talking about requests and responses on a different
level than in SASL terms.

>>   The "client_maxbuf" field indicate the maximum protected buffer size
>
> ... in network byte order
>
>>   the client can receive.


Good catch, added.

>>4.3.2.  GSS_Wrap input for server responses
>
> [...]
>>   The "server_qop" field integer indicate the selected quality of
>>   protection.
>
> I suggest to add:
>
>  It must be one of the values specified by the client in
> "client_qops"/"client_cbqops"
>
> And similar text for "client_qop" in 4.3.4.

Actually, no.  I think it would be useful to be able to specify a
different value, if you can't support any of the proposed values.  It
is then up to the other side to reject the selection or not.

The messages is integrity protected, so there is no downgrade attack,
that I can see.

>>5.  Channel Bindings
>>
>>   The GS2 mechanism provide its own channel binding mechanism, instead
>>   of using the "chan_binding" parameter in the GSS-API context
>>   functions.  The reason for this is that the GS2 mechanism provide an
>>   option to proceed even if the channel bindings does not match.  The
>>   GSS-API framework specifies that authentication cannot proceed if
>>   channel bindings does not match.
>
> typo: do not

Thanks.

>>   Client and servers MUST set the "chan_binding" parameter in the calls
>>   to GSS_Init_sec_context to GSS_Accept_sec_context, respectively, to
>
> missing word "and"?

Yup, I replaced the second "to" to "and".

>>   NULL.
>
>>6.  Protocol Overview
>
> [...]
>
>>   Because GSS-API authentication is initiated by the client, the length
>>   field will be 0 in the initial token from the server to the client
>>   when the protocol profile do not support additional information to be
>
> typo: does not

Thanks.

>>   sent together with the authentication request.
>
>
> You might want to add the following to section 9:
>
>   When decoding any received data with GSS_Unwrap the major_status
>   other than the GSS_S_COMPLETE MUST be treated as a fatal error.

Added.

>>9.1.  Examples
>
> [...]
>
>>   When integrity is negotiated the octet will encode an integer 4 as
>
> I think you meant "confidentiality" here.
>
>>   follows.
>>
>>       0 1 2 3 4 5 6 7
>>      +-+-+-+-+-+-+-+-+
>>      |0|0|0|0|0|0|1|1|
>>      +-+-+-+-+-+-+-+-+
>
> And the example doesn't match the description above, it shows the
> value 3 (no layer + integrity)

Right, the example was wrong, I've changed it.

>>12.  IANA Considerations
>>
>>   The IANA is advised that SASL mechanism names starting with "GS2-"
>>   are reserved for SASL mechanisms which conform to this document.  The
>>   IANA is directed to place a statement to that effect in the sasl-
>>   mechanisms registry.
>>
>>     Subject: Registration of SASL mechanism GS2-*
>>     Family of SASL mechanisms: YES
>
> I think Kurt took out this line from the IANA registration template in
> RFC 4422.

Removed, thanks.

/Simon


