
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 k511mnGn080086; Wed, 31 May 2006 18:48:49 -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 k511mn7F080085; Wed, 31 May 2006 18:48:49 -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 k511mmur080078 for <ietf-sasl@imc.org>; Wed, 31 May 2006 18:48:48 -0700 (MST) (envelope-from Kurt@OpenLDAP.org)
Received: from gypsy.OpenLDAP.org (24-205-218-53.dhcp.crcy.nv.charter.com [24.205.218.53] (may be forged)) (authenticated bits=0) by boole.openldap.org (8.13.3/8.13.3) with ESMTP id k511mlHt083969 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <ietf-sasl@imc.org>; Thu, 1 Jun 2006 01:48:47 GMT (envelope-from Kurt@OpenLDAP.org)
Message-Id: <7.0.1.0.0.20060531184222.038fd7e0@OpenLDAP.org>
X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0
Date: Wed, 31 May 2006 18:48:47 -0700
To: ietf-sasl@imc.org
From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
Subject: Re: I-D ACTION:draft-ietf-sasl-gssapi-05.txt 
In-Reply-To: <E1FlWhd-0003Wd-JF@stiedprstage1.ietf.org>
References: <E1FlWhd-0003Wd-JF@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 recent WG Last Call are adequately addressed.

It is my intent to soon recommend this revision ("as is"
or with minor changes) to the IESG for consideration
as a Standard Track (Proposed Standard) RFC obsoleting
RFC 2222.

Thanks, Kurt

At 12:50 PM 5/31/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           : The Kerberos V5 ("GSSAPI") SASL mechanism
>        Author(s)       : A. Melnikov
>        Filename        : draft-ietf-sasl-gssapi-05.txt
>        Pages           : 10
>        Date            : 2006-5-31
>        
>The Simple Authentication and Security Layer (SASL, RFC XXXX) is a
>framework for adding authentication support to connection-based
>protocols.  This document describes the method for using the Generic
>Security Service Application Program Interface (GSS-API) KERBEROS V5
>in the Simple Authentication and Security Layer.
>
>This document replaces section 7.2 of RFC 2222, the definition of the
>"GSSAPI" SASL mechanism.
>
>A URL for this Internet-Draft is:
>http://www.ietf.org/internet-drafts/draft-ietf-sasl-gssapi-05.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-gssapi-05.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-gssapi-05.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-5-31125315.I-D@ietf.org>
>
>ENCODING mime
>FILE /internet-drafts/draft-ietf-sasl-gssapi-05.txt
>
>
><ftp://ftp.ietf.org/internet-drafts/draft-ietf-sasl-gssapi-05.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 k4VJo91l093256; Wed, 31 May 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 k4VJo95f093255; Wed, 31 May 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 willow.neustar.com (willow.neustar.com [209.173.53.84]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k4VJo8JO093226 for <ietf-sasl@imc.org>; Wed, 31 May 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 willow.neustar.com (8.12.8/8.12.8) with ESMTP id k4VJo1Rx020138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 31 May 2006 19:50:01 GMT
Received: from ietf by stiedprstage1.ietf.org with local (Exim 4.43) id 1FlWhd-0003Wd-JF; Wed, 31 May 2006 15:50:01 -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-gssapi-05.txt 
Message-Id: <E1FlWhd-0003Wd-JF@stiedprstage1.ietf.org>
Date: Wed, 31 May 2006 15:50:01 -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		: The Kerberos V5 ("GSSAPI") SASL mechanism
	Author(s)	: A. Melnikov
	Filename	: draft-ietf-sasl-gssapi-05.txt
	Pages		: 10
	Date		: 2006-5-31
	
The Simple Authentication and Security Layer (SASL, RFC XXXX) is a
framework for adding authentication support to connection-based
protocols.  This document describes the method for using the Generic
Security Service Application Program Interface (GSS-API) KERBEROS V5
in the Simple Authentication and Security Layer.

This document replaces section 7.2 of RFC 2222, the definition of the
"GSSAPI" SASL mechanism.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-sasl-gssapi-05.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-gssapi-05.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-gssapi-05.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-5-31125315.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-sasl-gssapi-05.txt

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

Content-Type: text/plain
Content-ID:	<2006-5-31125315.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 k4IFUlRP022116; Thu, 18 May 2006 08:30:47 -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 k4IFUlQI022109; Thu, 18 May 2006 08:30:47 -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 k4IFUiJt022089 for <ietf-sasl@imc.org>; Thu, 18 May 2006 08:30:45 -0700 (MST) (envelope-from Kurt@OpenLDAP.org)
Received: from gypsy.OpenLDAP.org (24-205-218-53.dhcp.crcy.nv.charter.com [24.205.218.53] (may be forged)) (authenticated bits=0) by boole.openldap.org (8.13.3/8.13.3) with ESMTP id k4IFUduG008967 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 May 2006 15:30:40 GMT (envelope-from Kurt@OpenLDAP.org)
Message-Id: <7.0.1.0.0.20060518082248.03c7ad88@OpenLDAP.org>
X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0
Date: Thu, 18 May 2006 08:30:18 -0700
To: "Paco Martinez Rodriguez" <pmartinez@heraldo.es>
From: "Kurt D. Zeilenga" <Kurt@OpenLDAP.org>
Subject: Re: Problem testsaslauthd
Cc: <ietf-sasl@imc.org>
In-Reply-To: <7F4B899005EB0C4DBDFBBF0DA1FB2DE5022CA55C@zarsv007.heraldo. es>
References: <7F4B899005EB0C4DBDFBBF0DA1FB2DE5022CA55C@zarsv007.heraldo.es>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
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>

This list is for discussions regarding the standardization of
SASL and work of the IETF SASL working group.  Questions
(and answers) regarding the use of any particular SASL
implementation should be directed appropriate support forums
for that implementation.  For Cyrus SASL, that forum would be
the <cyrus-sasl@lists.andrew.cmu.edu> list (to subscribe, send
"subscribe cyrus-sasl" to <majordomo@lists.andrew.cmu.edu>).

Regards, Kurt (SASL WG co-chair)

At 04:31 AM 5/18/2006, Paco Martinez Rodriguez wrote:

>Hi
>
>My Server has installed postfix+sasl+winbindd+samba with SuSE 10.0
>
>I have problems executing “testsaslauthd –u USER –p PASS –s smtp”. 
>
>Output is  0: NO "authentication failed"
>
>In sasl log files appears 
>
>DEBUG: auth_pam: pam_acct_mgmt failed: Permission denied
>
>May 18 12:57:06 saslauthd[31381]: do_auth         : auth failure: [user=USER] [service=smtp] [realm=] [mech=pam] [reason=PAM acct error]
>
>However in winbind log appears:
>
>Verify  user `USER`
>
>User ‘USER’ granted access
>
>Wbinfo –u, wbinfo –g, wbinfo –t executes ok
>
>File /etc/pam.d/smtp is
>
>auth      sufficient     /lib/security/pam_winbind.so debug
>
>account   sufficient     /lib/security/pam_winbind.so debug
>
>File /etc/sysconfig/saslauthd is
>
>SASLAUTHD_AUTHMECH="pam”
>
>SASLAUTHD_FLAGS="-d -V -n0"
>
>And /etc/samba/smb.conf is
>
>[global]
>
>        workgroup = GROUP 
>
>        winbind separator = _
>
>        idmap uid = 10000-20000
>
>        idmap gid = 10000-20000
>
>        winbind enum users = yes
>
>        winbind enum groups = yes
>
>        password server = 192.168.1.1
>
>        realm = 192.168.1.1
>
>        interfaces = eth1
>
>        auth methods = winbind
>
>        template shell = /bin/false
>
>        winbind use default domain = yes
>
>        encrypt passwords = Yes
>
>        wins server = 192.168.1.1
>
>Thanks !!



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 k4IBXqin067490; Thu, 18 May 2006 04:33: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 k4IBXqU3067489; Thu, 18 May 2006 04:33: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 shgheraragbdd01.heraldo.es ([213.4.114.85]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k4IBXoCc067462 for <ietf-sasl@imc.org>; Thu, 18 May 2006 04:33:51 -0700 (MST) (envelope-from pmartinez@heraldo.es)
Received: from localhost (localhost [127.0.0.1]) by shgheraragbdd01.heraldo.es (Postfix) with ESMTP id EB5472DB0D8 for <ietf-sasl@imc.org>; Thu, 18 May 2006 13:33:48 +0200 (CEST)
Received: from shgheraragbdd01.heraldo.es ([127.0.0.1]) by localhost (shgheraragbdd01.heraldo.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00924-01-4 for <ietf-sasl@imc.org>; Thu, 18 May 2006 13:33:45 +0200 (CEST)
Received: from zarsv007.heraldo.es (15.Red-80-34-88.staticIP.rima-tde.net [80.34.88.15]) by shgheraragbdd01.heraldo.es (Postfix) with ESMTP id EFECA2DB16A for <ietf-sasl@imc.org>; Thu, 18 May 2006 13:33:39 +0200 (CEST)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C67A6E.943C2815"
X-MimeOLE: Produced By Microsoft Exchange V6.5
Subject: Problem testsaslauthd
Date: Thu, 18 May 2006 13:31:17 +0200
Message-ID: <7F4B899005EB0C4DBDFBBF0DA1FB2DE5022CA55C@zarsv007.heraldo.es>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Problem testsaslauthd
Thread-Index: AcZ6bpQObR5khthsSPKEiMssKvn5ow==
From: "Paco Martinez Rodriguez" <pmartinez@heraldo.es>
To: <ietf-sasl@imc.org>
X-Virus-Scanned: amavisd-new at heraldo.es
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>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C67A6E.943C2815
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hi

My Server has installed postfix+sasl+winbindd+samba with SuSE 10.0

I have problems executing "testsaslauthd -u USER -p PASS -s smtp".=20
Output is  0: NO "authentication failed"

In sasl log files appears=20

DEBUG: auth_pam: pam_acct_mgmt failed: Permission denied
May 18 12:57:06 saslauthd[31381]: do_auth         : auth failure:
[user=3DUSER] [service=3Dsmtp] [realm=3D] [mech=3Dpam] [reason=3DPAM =
acct error]

However in winbind log appears:
Verify  user `USER`
User 'USER' granted access

Wbinfo -u, wbinfo -g, wbinfo -t executes ok

File /etc/pam.d/smtp is

auth      sufficient     /lib/security/pam_winbind.so debug
account   sufficient     /lib/security/pam_winbind.so debug

File /etc/sysconfig/saslauthd is

SASLAUTHD_AUTHMECH=3D"pam"
SASLAUTHD_FLAGS=3D"-d -V -n0"


And /etc/samba/smb.conf is

[global]
        workgroup =3D GROUP=20
        winbind separator =3D _
        idmap uid =3D 10000-20000
        idmap gid =3D 10000-20000
        winbind enum users =3D yes
        winbind enum groups =3D yes
        password server =3D 192.168.1.1
        realm =3D 192.168.1.1
        interfaces =3D eth1
        auth methods =3D winbind
        template shell =3D /bin/false
        winbind use default domain =3D yes
        encrypt passwords =3D Yes
        wins server =3D 192.168.1.1

Thanks !!

------_=_NextPart_001_01C67A6E.943C2815
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7638.1">
<TITLE>Problem testsaslauthd</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">Hi</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">My</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"> <FONT FACE=3D"Arial">Server</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT FACE=3D"Arial"> has installed =
postfix+sasl+winbindd+samba</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial"> with SuSE 10.0</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">I have problems =
executing</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">&#8220;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">testsaslauthd</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">&#8211;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">u</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">USER</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial"></FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">&#8211;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">p</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">PASS</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial"></FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">&#8211;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">s smtp</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&#8221;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">.</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> </SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">Output =
is&nbsp;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">0: NO &quot;authentication =
failed&quot;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">In sasl log files =
appears</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN LANG=3D"es"> =
</SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">DEBUG: auth_pam: =
pam_acct_mgmt failed: Permission denied</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">May 18 12:57:06 =
saslauthd[31381]: =
do_auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : auth failure: =
[user=3D</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">USER</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">] [service=3Dsmtp] [realm=3D] =
[mech=3Dpam] [reason=3DPAM acct error]</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">However in =
winbind log appears</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">:</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">Verify&nbsp; user =
`USER`</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">User</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"> <FONT FACE=3D"Arial">&#8216;</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">USER</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">&#8217;</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT FACE=3D"Arial"> granted =
access</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">Wbinfo</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"> <FONT FACE=3D"Arial">&#8211;</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT FACE=3D"Arial">u, =
wbinfo</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">&#8211;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">g, wbinfo</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">&#8211;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">t</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">e</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial">x</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">ecutes</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial"> ok</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">File =
/etc/pam.d/smtp is</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
sufficient&nbsp;&nbsp;&nbsp;&nbsp; /lib/security/pam_winbind.so =
debug</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">account&nbsp;&nbsp; sufficient&nbsp;&nbsp;&nbsp;&nbsp; =
/lib/security/pam_winbind.so debug</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">File =
/etc/sysconfig/saslauthd is</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">SASLAUTHD_AUTHMECH=3D&quot;pam</FONT></SPAN><SPAN =
LANG=3D"es"></SPAN><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&#8221;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">SASLAUTHD_FLAGS=3D&quot;-d -V =
-n0&quot;</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"></SPAN></P>
<BR>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">And =
/etc/samba/smb.conf is</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">[global]</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; workgroup =
=3D</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN LANG=3D"es"> <FONT =
FACE=3D"Arial">GROUP</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"><FONT FACE=3D"Arial"> </FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial"></FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es">&nbsp;<FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; winbind separator =
=3D _</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idmap uid =3D =
10000-20000</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; idmap gid =3D =
10000-20000</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; winbind enum =
users =3D yes</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; winbind enum =
groups =3D yes</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password =
server =3D 192.168.1.1</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; realm =3D =
192.168.1.1</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; interfaces =3D =
eth1</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; auth methods =
=3D winbind</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; template shell =
=3D /bin/false</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; winbind use =
default domain =3D yes</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial"></FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es">&nbsp;<FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; encrypt passwords =
=3D Yes</FONT></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT =
FACE=3D"Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wins server =
=3D 192.168.1.1</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN =
LANG=3D"es"></SPAN></P>

<P ALIGN=3DLEFT><SPAN LANG=3D"es"><FONT FACE=3D"Arial">Thanks =
!!</FONT></SPAN><SPAN LANG=3D"es"></SPAN><SPAN LANG=3D"es"></SPAN></P>

</BODY>
</HTML>
------_=_NextPart_001_01C67A6E.943C2815--



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 k4FLOguM043963; Mon, 15 May 2006 14:24: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 k4FLOguw043962; Mon, 15 May 2006 14:24: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 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 k4FLOfmS043956 for <ietf-sasl@imc.org>; Mon, 15 May 2006 14:24:41 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail4brm.central.Sun.COM ([129.147.62.198]) by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k4FLOQif014707 for <ietf-sasl@imc.org>; Mon, 15 May 2006 14:24:26 -0700 (PDT)
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by centralmail4brm.central.Sun.COM (8.13.6+Sun/8.13.6/ENSMAIL,v2.2) with ESMTP id k4FLNeaL027127 for <ietf-sasl@imc.org>; Mon, 15 May 2006 15:24:21 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3) with ESMTP id k4FLNeu9004705; Mon, 15 May 2006 16:23:40 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3/Submit) id k4FLNeDr004704; Mon, 15 May 2006 16:23:40 -0500 (CDT)
Date: Mon, 15 May 2006 16:23:40 -0500
From: Nicolas Williams <Nicolas.Williams@Sun.COM>
To: Jeffrey Hutzelman <jhutz@cmu.edu>
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <20060515212340.GA4249@binky.Central.Sun.COM>
Mail-Followup-To: Jeffrey Hutzelman <jhutz@cmu.edu>, Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <44676B0C.1010202@isode.com> <20060515141727.GQ1120@binky.Central.Sun.COM> <9E3074F987BB6B468B644A84@sirius.fac.cs.cmu.edu> <20060515210025.GA4204@binky.Central.Sun.COM> <932E5FFFAB68A9DE2A58F65C@sirius.fac.cs.cmu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <932E5FFFAB68A9DE2A58F65C@sirius.fac.cs.cmu.edu>
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 Mon, May 15, 2006 at 05:12:44PM -0400, Jeffrey Hutzelman wrote:
> I'm not talking about GSS mech implementors.  I'm talking about 
> implementors of the sasl-gssapi spec which requires that servers check the 
> target_name against "the fully qualified host names of the server".

D'oh.  Yeah...

In general it should suffice to check the service name.

That this is so difficult to do is another reason to want extended
GSS-API naming APIs...

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 k4FLClCo041805; Mon, 15 May 2006 14:12:47 -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 k4FLClI5041804; Mon, 15 May 2006 14:12:47 -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 k4FLCk60041797 for <ietf-sasl@imc.org>; Mon, 15 May 2006 14:12:47 -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.5/8.13.5) with ESMTP id k4FLCik0013042 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 15 May 2006 17:12:44 -0400 (EDT)
Date: Mon, 15 May 2006 17:12:44 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: Nicolas Williams <Nicolas.Williams@Sun.COM>
cc: Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org, Jeffrey Hutzelman <jhutz@cmu.edu>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <932E5FFFAB68A9DE2A58F65C@sirius.fac.cs.cmu.edu>
In-Reply-To: <20060515210025.GA4204@binky.Central.Sun.COM>
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <44676B0C.1010202@isode.com> <20060515141727.GQ1120@binky.Central.Sun.COM> <9E3074F987BB6B468B644A84@sirius.fac.cs.cmu.edu> <20060515210025.GA4204@binky.Central.Sun.COM>
Originator-Info: login-token=Mulberry:01E6l0pn0R6Rpf9OwnRiekFaobq9Ga3e2AHqILSSk=; 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 Monday, May 15, 2006 04:00:25 PM -0500 Nicolas Williams 
<Nicolas.Williams@Sun.COM> wrote:

> On Mon, May 15, 2006 at 04:45:56PM -0400, Jeffrey Hutzelman wrote:
>>
>>
>> On Monday, May 15, 2006 09:17:27 AM -0500 Nicolas Williams
>> <Nicolas.Williams@Sun.COM> wrote:
>>
>> >> *  The server MUST check using the GSS_Inquire_context that the
>> >> target_name specified by the client matches GSS_C_NT_HOSTBASED_SERVICE
>> >> "service@hostname"
>> >> where "service" is the service name specified in the protocol's
>> >> profile, and "hostname" is one
>> >> of the fully qualified host names of the server.
>> >
>> > You don't want to add this text.
>> >
>> > The reason is that GSS_Display_name(), which you'd have to use to check
>> > this, is lame and can display names in mechanism-specific syntax,
>> > (e.g., krb5 "unparsed" princ name syntax), which means that checking
>> > for "service@hostname" can't quite be done the simple way.
>>
>> Also because some implementor will decide this means one of:
>>
>> - The hostname returned by gethostname()
>> - The hostnames returned by gethostbyaddr() or getnameinfo() on the
>>  IP addresses attached to one or all of the host's interfces.n
>>
>> Neither of which is right if the machine is named mail-fe1.example.org
>> and  the user is trying to connect to a service like imap@example.org or
>> even  imap@imap.example.org.
>
> I hope not, at least for the krb5 mech, or any mechanism which
> internally uses a hostname to represent the hostname part of
> GSS_C_NT_HOSTBASED_SERVICE names.  I guess some mechanisms might
> internally use IP addresses or some transformation of hostnames, but
> gosh, why?[0]

I'm not talking about GSS mech implementors.  I'm talking about 
implementors of the sasl-gssapi spec which requires that servers check the 
target_name against "the fully qualified host names of the server".


-- 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 k4FL1OrD039888; Mon, 15 May 2006 14:01: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 k4FL1OYW039887; Mon, 15 May 2006 14:01: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 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 k4FL1Nn3039873 for <ietf-sasl@imc.org>; Mon, 15 May 2006 14:01:24 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail4brm.central.Sun.COM ([129.147.62.198]) by nwkea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k4FL1Iif001348 for <ietf-sasl@imc.org>; Mon, 15 May 2006 14:01:18 -0700 (PDT)
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by centralmail4brm.central.Sun.COM (8.13.6+Sun/8.13.6/ENSMAIL,v2.2) with ESMTP id k4FL0Rua021258 for <ietf-sasl@imc.org>; Mon, 15 May 2006 15:01:13 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3) with ESMTP id k4FL0RlI004213; Mon, 15 May 2006 16:00:27 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3/Submit) id k4FL0QXh004212; Mon, 15 May 2006 16:00:26 -0500 (CDT)
Date: Mon, 15 May 2006 16:00:25 -0500
From: Nicolas Williams <Nicolas.Williams@Sun.COM>
To: Jeffrey Hutzelman <jhutz@cmu.edu>
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <20060515210025.GA4204@binky.Central.Sun.COM>
Mail-Followup-To: Jeffrey Hutzelman <jhutz@cmu.edu>, Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <44676B0C.1010202@isode.com> <20060515141727.GQ1120@binky.Central.Sun.COM> <9E3074F987BB6B468B644A84@sirius.fac.cs.cmu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <9E3074F987BB6B468B644A84@sirius.fac.cs.cmu.edu>
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 Mon, May 15, 2006 at 04:45:56PM -0400, Jeffrey Hutzelman wrote:
> 
> 
> On Monday, May 15, 2006 09:17:27 AM -0500 Nicolas Williams 
> <Nicolas.Williams@Sun.COM> wrote:
> 
> >>*  The server MUST check using the GSS_Inquire_context that the
> >>target_name specified by the client matches GSS_C_NT_HOSTBASED_SERVICE
> >>"service@hostname"
> >> where "service" is the service name specified in the protocol's
> >>profile, and "hostname" is one
> >> of the fully qualified host names of the server.
> >
> >You don't want to add this text.
> >
> >The reason is that GSS_Display_name(), which you'd have to use to check
> >this, is lame and can display names in mechanism-specific syntax, (e.g.,
> >krb5 "unparsed" princ name syntax), which means that checking for
> >"service@hostname" can't quite be done the simple way.
> 
> Also because some implementor will decide this means one of:
> 
> - The hostname returned by gethostname()
> - The hostnames returned by gethostbyaddr() or getnameinfo() on the
>  IP addresses attached to one or all of the host's interfces.n
> 
> Neither of which is right if the machine is named mail-fe1.example.org and 
> the user is trying to connect to a service like imap@example.org or even 
> imap@imap.example.org.

I hope not, at least for the krb5 mech, or any mechanism which
internally uses a hostname to represent the hostname part of
GSS_C_NT_HOSTBASED_SERVICE names.  I guess some mechanisms might
internally use IP addresses or some transformation of hostnames, but
gosh, why?[0]

Let's just say that when we specify the replacement for
GSS_Display_name() we would require that if the requested name type is
GSS_C_NT_HOSTBASED_SERVICE and the given MN[1] can be displayed in the
generic syntax of GSS_C_NT_HOSTBASED_SERVICE, then the hostname must be
taken from the MN as is where possible.

[0] That's rhetorical, I think I can imagine something legit here, I
    just don't want to delve into that in this thread.  So, point taken.

[1] MN == mechanism name, but is not type-wise distinguishable from a
    normal GSS-API NAME object (gss_name_t) -- it is the output of
    GSS_Canonicalize_name(), GSS_Accept_sec_context(),
    GSS_Inquire_context(), and, when importing an exported name,
    GSS_Import_name().

    See RFC2743.

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 k4FKk06h037220; Mon, 15 May 2006 13:46: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 k4FKk0cG037219; Mon, 15 May 2006 13:46: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 k4FKjwLl037213 for <ietf-sasl@imc.org>; Mon, 15 May 2006 13:45: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.5/8.13.5) with ESMTP id k4FKjuGW012287 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 15 May 2006 16:45:56 -0400 (EDT)
Date: Mon, 15 May 2006 16:45:56 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: Nicolas Williams <Nicolas.Williams@Sun.COM>, Alexey Melnikov <alexey.melnikov@isode.com>
cc: Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org, Jeffrey Hutzelman <jhutz@cmu.edu>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <9E3074F987BB6B468B644A84@sirius.fac.cs.cmu.edu>
In-Reply-To: <20060515141727.GQ1120@binky.Central.Sun.COM>
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <44676B0C.1010202@isode.com> <20060515141727.GQ1120@binky.Central.Sun.COM>
Originator-Info: login-token=Mulberry:011H3ymD7lZwwgyGoZB/siB2vvKcNbsWtB8iD9Cv0=; 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 Monday, May 15, 2006 09:17:27 AM -0500 Nicolas Williams 
<Nicolas.Williams@Sun.COM> wrote:

>> *  The server MUST check using the GSS_Inquire_context that the
>> target_name specified by the client matches GSS_C_NT_HOSTBASED_SERVICE
>> "service@hostname"
>>  where "service" is the service name specified in the protocol's
>> profile, and "hostname" is one
>>  of the fully qualified host names of the server.
>
> You don't want to add this text.
>
> The reason is that GSS_Display_name(), which you'd have to use to check
> this, is lame and can display names in mechanism-specific syntax, (e.g.,
> krb5 "unparsed" princ name syntax), which means that checking for
> "service@hostname" can't quite be done the simple way.

Also because some implementor will decide this means one of:

- The hostname returned by gethostname()
- The hostnames returned by gethostbyaddr() or getnameinfo() on the
  IP addresses attached to one or all of the host's interfces.n

Neither of which is right if the machine is named mail-fe1.example.org and 
the user is trying to connect to a service like imap@example.org or even 
imap@imap.example.org.

-- 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 k4FEbAW0060025; Mon, 15 May 2006 07:37: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 k4FEbAKe060024; Mon, 15 May 2006 07:37: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 nwkea-mail-4.sun.com (nwkea-mail-4.sun.com [192.18.42.26]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k4FEb99c060016 for <ietf-sasl@imc.org>; Mon, 15 May 2006 07:37:09 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail3brm.Central.Sun.COM ([129.147.62.199]) by nwkea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id k4FEb8Um014863 for <ietf-sasl@imc.org>; Mon, 15 May 2006 07:37:09 -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 k4FEaXud022595 for <ietf-sasl@imc.org>; Mon, 15 May 2006 08:36:33 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3) with ESMTP id k4FEb8CO003731; Mon, 15 May 2006 09:37:08 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3/Submit) id k4FEb8Qo003730; Mon, 15 May 2006 09:37:08 -0500 (CDT)
Date: Mon, 15 May 2006 09:37:08 -0500
From: Nicolas Williams <Nicolas.Williams@Sun.COM>
To: Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <20060515143708.GV13741@binky.Central.Sun.COM>
Mail-Followup-To: Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <44676B0C.1010202@isode.com> <20060515141727.GQ1120@binky.Central.Sun.COM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20060515141727.GQ1120@binky.Central.Sun.COM>
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 Mon, May 15, 2006 at 09:17:27AM -0500, Nicolas Williams wrote:
> > As per Nico's comment it is possible to use gss_inquire_context to 
> > determine the target acceptor name as used by the client.
> > I will add some text regarding this, something like the following:*
> > 
> > *  The server MUST check using the GSS_Inquire_context that the target_name
> >  specified by the client matches GSS_C_NT_HOSTBASED_SERVICE 
> > "service@hostname"
> >  where "service" is the service name specified in the protocol's 
> > profile, and "hostname" is one
> >  of the fully qualified host names of the server.
> 
> You don't want to add this text.

OTOH, since this is a single mechanism use of the GSS-API it should be
fine to say something like this (based on your text:

   The server SHOULD check using the GSS_Inquire_context that the
   target_name used by the client matches either:
   
    - the GSS_C_NT_HOSTBASED_SERVICE "<service>@<hostname>" name syntax,
      with <service> being the service specified in the application
      protocol's profile,

   or that the 

    - the GSS_KRB5_NT_PRINCIPAL_NAME [RFC1964] name syntax for a
      two-component principal where the first component matches the
      service specified in the application protocol's profile.

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 k4FEHZam055599; Mon, 15 May 2006 07:17:35 -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 k4FEHZ4n055598; Mon, 15 May 2006 07:17:35 -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-5.sun.com (nwkea-mail-5.sun.com [192.18.42.27]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k4FEHXv2055591 for <ietf-sasl@imc.org>; Mon, 15 May 2006 07:17:34 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail3brm.Central.Sun.COM ([129.147.62.199]) by nwkea-mail-5.sun.com (8.12.10/8.12.9) with ESMTP id k4FEHXaN016591 for <ietf-sasl@imc.org>; Mon, 15 May 2006 07:17:33 -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 k4FEGwIb016784 for <ietf-sasl@imc.org>; Mon, 15 May 2006 08:16:58 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3) with ESMTP id k4FEHWbb003710; Mon, 15 May 2006 09:17:32 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3/Submit) id k4FEHR0r003709; Mon, 15 May 2006 09:17:27 -0500 (CDT)
Date: Mon, 15 May 2006 09:17:27 -0500
From: Nicolas Williams <Nicolas.Williams@Sun.COM>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <20060515141727.GQ1120@binky.Central.Sun.COM>
Mail-Followup-To: Alexey Melnikov <alexey.melnikov@isode.com>, Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <44676B0C.1010202@isode.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <44676B0C.1010202@isode.com>
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 Sun, May 14, 2006 at 06:38:20PM +0100, Alexey Melnikov wrote:
> Chris Newman wrote:
> >Many modern servers have multiple fully qualified host names.  In a 
> >high availability (HA) environment, there may be a direct host name 
> >and a shared host name (to distinguish the two nodes in the HA 
> >cluster).  And a multi-homed server may listen on multiple TCP/IP 
> >interfaces, each of which may have one or more host names.
> 
> I've included text as proposed by Nico after applying some minor 
> editorial changes:
> 
>  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 Kerberos V5 GSS-API mechanism [KRB5GSS] (*).
>  Servers MAY use GSS_C_NO_CREDENTIAL as an acceptor credential handle,
>  and SHOULD check that the mech_type of the security context, upon full 
> establishment,
>  is that of the Kerberos V5 GSS-API mechanism [KRB5GSS].
> *
> *Question to Nico: the paragraph preceding to this one says that the 
> client SHOULD check that the resulting mech_type is Kerberos V5.
> Is it worth repeating this here?

Nah.  I don't like extra redundancy.

>  Servers MAY use a credential obtained by calling GSS_Acquire_cred or 
> GSS_Add_cred for the server's
>  principal name and the Kerberos V5 GSS-API mechanism [KRB5GSS].
> 
> Question to Nico: "server's principal name" sounds very vague compared 
> to the original service@hostname text.
> 
>  (*) - 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.
> 
> >Is there a way to dig the hostname out of the client's initial response?
> 
> As per Nico's comment it is possible to use gss_inquire_context to 
> determine the target acceptor name as used by the client.
> I will add some text regarding this, something like the following:*
> 
> *  The server MUST check using the GSS_Inquire_context that the target_name
>  specified by the client matches GSS_C_NT_HOSTBASED_SERVICE 
> "service@hostname"
>  where "service" is the service name specified in the protocol's 
> profile, and "hostname" is one
>  of the fully qualified host names of the server.

You don't want to add this text.

The reason is that GSS_Display_name(), which you'd have to use to check
this, is lame and can display names in mechanism-specific syntax, (e.g.,
krb5 "unparsed" princ name syntax), which means that checking for
"service@hostname" can't quite be done the simple way.

This is a problem with the GSS-APIv2u1, and we do intend to fix this in
v3 by adding a new version of GSS_Display_name() that takes a name type
OID as input that tells the mechanism to display the name as a generic
name if possible.

I'm not sure what to suggest.  It is important to make sure that the
acceptor only has acceptor credentials for the service principals that
it should be accepting security contexts for.  But the GSS-APIv2u1 is
rather restrictive here and all the API-wise ways to do this are
painful!

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 k4F9Ci85082266; Mon, 15 May 2006 02:12: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 k4F9CiSK082265; Mon, 15 May 2006 02:12: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 rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k4F9Cfq3082233 for <ietf-sasl@imc.org>; Mon, 15 May 2006 02:12:44 -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 via TCP (submission) with ESMTPA; Mon, 15 May 2006 10:12:38 +0100
Message-ID: <44676C22.8020208@isode.com>
Date: Sun, 14 May 2006 18:42:58 +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: Chris Newman <Chris.Newman@Sun.COM>, Nicolas Williams <Nicolas.Williams@Sun.COM>
CC: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu> <FB7C175D81AE029455BAAAA2@[10.1.110.5]> <0FF857517780D49A6C70D515@sirius.fac.cs.cmu.edu> <6BB15B363E1B0AF327AA82CE@[10.1.110.5]>
In-Reply-To: <6BB15B363E1B0AF327AA82CE@[10.1.110.5]>
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>

Chris Newman wrote:

> Nicolas Williams wrote on 5/1/06 17:32 -0500:
>
>> Having said that, I think the I-D should say that servers MUST NOT offer
>> "GSSAPI" unless they have acceptor credentials for the Kerberos V
>> GSS-API Mechanism,
>
I've added:

A server MUST NOT advertise support for the "GSSAPI" SASL mechanism 
described in
this document unless it has acceptor credential for the Kerberos V
GSS-API Mechanism [KRB5GSS].

>> while clients MUST reference use the OID of the
>> Kerberos V GSS-API Mechanism as the value for the 'mech' input of
>> GSS_Init_sec_context().
>
This is done as well.

> I concur.


Nicolas Williams wrote:

>On Mon, May 01, 2006 at 11:49:10AM -0700, Chris Newman wrote:
>  
>
>>Section 3 / GSSAPI in Kerberos 5 mode?
>>
>>I apologize that my understanding of GSSAPI is primitive, but I believe 
>>GSSAPI must be configured with a default mechanism.  As this protocol is 
>>for Kerberos v5 only, I presume the GSSAPI that's used on the client must 
>>be configured with Kerberos 5 as the default mechanism and not something 
>>else (e.g. SPNEGO). Shouldn't the specification make that explicit 
>>somewhere?  Does the server need a similar configuration, or can it figure 
>>it out based on the client's initial response?
>>    
>>
>First off, I think the I-D has to be very clear about "GSS-API" vs.
>"GSSAPI" -- the former being the short form of "Generic Security Service
>Application Program Interface" and the latter being a misnomer for the
>"Kerberos V GSS-API Mechanism."
>  
>
Fixed.




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 k4F9ChTY082249; Mon, 15 May 2006 02:12:43 -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 k4F9ChU6082248; Mon, 15 May 2006 02:12:43 -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 k4F9Cfq2082233 for <ietf-sasl@imc.org>; Mon, 15 May 2006 02:12:43 -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 via TCP (submission) with ESMTPA; Mon, 15 May 2006 10:12:35 +0100
Message-ID: <44676B0C.1010202@isode.com>
Date: Sun, 14 May 2006 18:38:20 +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
To: Chris Newman <Chris.Newman@Sun.COM>, Nicolas Williams <Nicolas.Williams@Sun.COM>
CC: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]>
In-Reply-To: <30E5513318E96209421AC019@[10.1.110.5]>
MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"; 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>

Thanks for the comments Chris.

Chris Newman wrote:

> Minor: All the whitespace with the short sections is distracting.  
> Could you please add this to the XML source:
>  <?rfc compact="yes"?>
>  <?rfc subcompact="no"?>

Added.

> Abstract Nit: RFC editor rules forbid use of [] references; please 
> remove them. 

Fixed.

> Section 3 / GSSAPI in Kerberos 5 mode?
>
> I apologize that my understanding of GSSAPI is primitive, but I 
> believe GSSAPI must be configured with a default mechanism.  As this 
> protocol is for Kerberos v5 only, I presume the GSSAPI that's used on 
> the client must be configured with Kerberos 5 as the default mechanism 
> and not something else (e.g. SPNEGO). Shouldn't the specification make 
> that explicit somewhere?  Does the server need a similar 
> configuration, or can it figure it out based on the client's initial 
> response?

Fixed (see my other reply).

> Section 3.2 / initial response:
>
> As the SASL initial response is defined to be optional (and in the 
> case of IMAP it's not in the base specification), what does the server 
> do when it receives no initial response?  I presume the server sends 
> an empty challenge, but it'd be nice to explicitly say this is a 
> "client goes first" mechanism (regardless of use of the initial 
> response).

I've added:
   The GSSAPI SASL mechanism is a "client goes first" SASL mechanism, 
i.e. it
   starts with the client sending a "response" created as described in 
the following section.

> Section 3.2 / host name:
>
>>   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.
>
> Many modern servers have multiple fully qualified host names.  In a 
> high availability (HA) environment, there may be a direct host name 
> and a shared host name (to distinguish the two nodes in the HA 
> cluster).  And a multi-homed server may listen on multiple TCP/IP 
> interfaces, each of which may have one or more host names.

I've included text as proposed by Nico after applying some minor 
editorial changes:

  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 Kerberos V5 GSS-API mechanism [KRB5GSS] (*).
  Servers MAY use GSS_C_NO_CREDENTIAL as an acceptor credential handle,
  and SHOULD check that the mech_type of the security context, upon full 
establishment,
  is that of the Kerberos V5 GSS-API mechanism [KRB5GSS].
*
*Question to Nico: the paragraph preceding to this one says that the 
client SHOULD check that the resulting mech_type is Kerberos V5.
Is it worth repeating this here?

  Servers MAY use a credential obtained by calling GSS_Acquire_cred or 
GSS_Add_cred for the server's
  principal name and the Kerberos V5 GSS-API mechanism [KRB5GSS].

Question to Nico: "server's principal name" sounds very vague compared 
to the original service@hostname text.

  (*) - 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.

> Is there a way to dig the hostname out of the client's initial response?

As per Nico's comment it is possible to use gss_inquire_context to 
determine the target acceptor name as used by the client.
I will add some text regarding this, something like the following:*

*  The server MUST check using the GSS_Inquire_context that the target_name
  specified by the client matches GSS_C_NT_HOSTBASED_SERVICE 
"service@hostname"
  where "service" is the service name specified in the protocol's 
profile, and "hostname" is one
  of the fully qualified host names of the server.

Comments?




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 k4F9ChwR082240; Mon, 15 May 2006 02:12:43 -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 k4F9Chvw082239; Mon, 15 May 2006 02:12:43 -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 k4F9Cfq1082233 for <ietf-sasl@imc.org>; Mon, 15 May 2006 02:12:42 -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 via TCP (submission) with ESMTPA; Mon, 15 May 2006 10:12:33 +0100
Message-ID: <44676680.3050908@isode.com>
Date: Sun, 14 May 2006 18:18: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
To: Nicolas Williams <Nicolas.Williams@Sun.COM>
CC: Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <20060501223249.GM15332@binky.Central.Sun.COM>
In-Reply-To: <20060501223249.GM15332@binky.Central.Sun.COM>
MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"; 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>

Nicolas Williams wrote:

>On Tue, May 02, 2006 at 04:39:01PM -0700, Chris Newman wrote:
>  
>
>>Alexey, can you document this in the spec?
>>The GSS_C_NO_CREDENTIAL approach sounds a bit simpler, but the 
>>inquire_sec_context approach sounds better for servers using a private 
>>keytab.
>>    
>>
>BTW, if you want GSS_C_NO_CREDENTIAL semantics while forcibly limiting
>what mechanisms you will accept security contexts for you can acquire a
>credential handle for GSS_C_NO_NAME as the desired_name.
>
>That said, I think it's OK for servers to use GSS_C_NO_CREDENTIAL and
>then inspect the actual_mech output from GSS_Accept_sec_context() and
>reject the context if that turns out to be anything other than the krb5
>mech.
>  
>
After checking the GSS-API document I discovered that the GSS-API 
mechanism OID is an output parameter. So I've added text with a 
requirement for the server to check the output mechanism:

  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 Kerberos V5 [KRB5GSS].
  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 used SHOULD above as a particular GSS-API implementation may be 
known to only supports the Kerberos V5 GSS-API mechanism.




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 k48IN9VK057554; Mon, 8 May 2006 11:23: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 k48IN9FA057553; Mon, 8 May 2006 11:23: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 rufus.isode.com (rufus.isode.com [62.3.217.251]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k48IN8pf057547 for <ietf-sasl@imc.org>; Mon, 8 May 2006 11:23:08 -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 via TCP (submission) with ESMTPA; Mon, 8 May 2006 19:23:02 +0100
Message-ID: <445F8C72.9010008@isode.com>
Date: Mon, 08 May 2006 19:22:42 +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
To: Jeffrey Hutzelman <jhutz@cmu.edu>
CC: Chris Newman <Chris.Newman@Sun.COM>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu>
In-Reply-To: <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu>
MIME-version: 1.0
Content-type: text/plain; charset="ISO-8859-1"; 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>

Jeffrey Hutzelman wrote:

>> As the SASL initial response is defined to be optional (and in the case
>> of IMAP it's not in the base specification), what does the server do 
>> when
>> it receives no initial response?  I presume the server sends an empty
>> challenge, but it'd be nice to explicitly say this is a "client goes
>> first" mechanism (regardless of use of the initial response).
>
> I believe it is indeed necessary for a SASL mechanism to specify the 
> required behavior in this situation.  The empty-challenge behavior you 
> describe seems reasonable, but should be explicitly spelled out.

I've added in section 3:

The GSSAPI SASL mechanism is a "client goes first" SASL mechanism, i.e. it
starts with the client sending a "response" created as described in the 
following section.



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 k43LoPVD048995; Wed, 3 May 2006 14:50:25 -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 k43LoPlj048994; Wed, 3 May 2006 14:50:25 -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 k43LoNIT048986 for <ietf-sasl@imc.org>; Wed, 3 May 2006 14:50:24 -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.5/8.13.5) with ESMTP id k43LoLtD024976 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 3 May 2006 17:50:21 -0400 (EDT)
Date: Wed, 03 May 2006 17:50:21 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: Chris Newman <Chris.Newman@Sun.COM>
cc: Nicolas Williams <Nicolas.Williams@Sun.COM>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org, Jeffrey Hutzelman <jhutz@cmu.edu>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <8B5DFC2B9B6631822BB22D39@sirius.fac.cs.cmu.edu>
In-Reply-To: <658DC209D01DA29908ACD2C0@[10.1.110.5]>
References: <Pine.LNX.4.33L.0605031146240.15341-100000@minbar.fac.cs.cmu.edu> <658DC209D01DA29908ACD2C0@[10.1.110.5]>
Originator-Info: login-token=Mulberry:01WOFJfcJJvvGkLMH+i1957O9TgKjfFcLFVnfijmE=; 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, May 03, 2006 02:19:20 PM -0700 Chris Newman 
<Chris.Newman@Sun.COM> wrote:

>
> Jeffrey Hutzelman wrote on 5/3/06 11:58 -0400:
>> On Tue, 2 May 2006, Chris Newman wrote:
>>
>>> Jeffrey Hutzelman wrote on 5/1/06 18:07 -0400:
>>> >  At the GSS-API C-bindings level, this is accomplished by
>>> > calling gss_accept_sec_context with acceptor_cred_handle set to
>>> > GSS_C_NO_CREDENTIAL.  Note that this uses the system-default keytab;
>>> > overriding this behavior requires the use of a mechanism-specific,
>>> > implementation-specific API extension.
>>>
>>> Thanks, Jeff!
>>>
>>> Alexey, can you document this in the spec?
>>
>> That really doesn't seem to me to be something that belongs in this spec.
>> Implementors of this mechanism are going to need to read RFC2743 and
>> RFC2744, where the above information came from, and the question of
>> whether to use specific server credentials or the default ones is an
>> implementation matter.
>
> The spec problem is this statement:
>
>    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.
>
> Specifically, the phrase "the fully qualified host name of the server" is
> nonsensical in the general case and makes this impossible to implement.
> That text needs to be replaced.  Can you suggest replacement text that
> will interoperate?

OK; now I see the issue.  The existing text is telling servers to call 
GSS_Accept_sec_context with credentials that are tied to a particular 
service name, and while "fully qualified host name of the server" isn't 
actually nonsensical, it's also not actually the right thing.  I think 
Nico's proposed replacement text solves the problem nicely.

-- 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 k43LNNKi048068; Wed, 3 May 2006 14:23: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 k43LNNjj048067; Wed, 3 May 2006 14:23: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 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 k43LNMJK048060 for <ietf-sasl@imc.org>; Wed, 3 May 2006 14:23:22 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail2brm.Central.Sun.COM ([129.147.62.14]) by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id k43LNLrM020827 for <ietf-sasl@imc.org>; Wed, 3 May 2006 14:23:21 -0700 (PDT)
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by centralmail2brm.Central.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id k43LNKWf023931 for <ietf-sasl@imc.org>; Wed, 3 May 2006 15:23:21 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3) with ESMTP id k43LNKr5021486; Wed, 3 May 2006 16:23:20 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3/Submit) id k43LNJj8021485; Wed, 3 May 2006 16:23:19 -0500 (CDT)
Date: Wed, 3 May 2006 16:23:19 -0500
From: Nicolas Williams <Nicolas.Williams@Sun.COM>
To: Chris Newman <Chris.Newman@Sun.COM>
Cc: Jeffrey Hutzelman <jhutz@cmu.edu>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <20060503212319.GZ19392@binky.Central.Sun.COM>
Mail-Followup-To: Chris Newman <Chris.Newman@Sun.COM>, Jeffrey Hutzelman <jhutz@cmu.edu>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org
References: <Pine.LNX.4.33L.0605031146240.15341-100000@minbar.fac.cs.cmu.edu> <658DC209D01DA29908ACD2C0@[10.1.110.5]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <658DC209D01DA29908ACD2C0@[10.1.110.5]>
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 Wed, May 03, 2006 at 02:19:20PM -0700, Chris Newman wrote:
> The spec problem is this statement:
> 
>   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.
> 
> Specifically, the phrase "the fully qualified host name of the server" is 
> nonsensical in the general case and makes this impossible to implement.  
> That text needs to be replaced.  Can you suggest replacement text that will 
> interoperate?

Yeah, that text needs wordsmithing.

I'd replace it with:

   The server passes the initial client response to
   GSS_Accept_sec_context as input_token, setting input_context_handle
   to 0 (initially), mech_type of the GSSAPI mechanism for which this
   SASL mechanism is registered, chan_binding of NULL, and a suitable
   acceptor_cred_handle (see below).  If GSS_Accept_sec_context returns
   GSS_S_CONTINUE_NEEDED, the server returns the generated output_token
   to the client in challenge and passes the resulting response to
   another call to GSS_Accept_sec_context, repeating the actions in this
   paragraph.

   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 Kerberos V
   GSS-API mechanism [RFC4121].  Servers MAY use GSS_C_NO_CREDENTIAL as
   an acceptor credential handle, and SHOULD check that the actual_mech
   of a security context, upon full establishment, is that of the
   Kerberos V GSS-API mechanism [RFC4121].  Servers MAY use a credential
   obtained by calling GSS_Acquire_cred or GSS_Add_cred the server's
   principal name and the Kerberos V GSS-API mechanism [RFC4121].



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 k43LGDRq047891; Wed, 3 May 2006 14:16:13 -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 k43LGD7a047890; Wed, 3 May 2006 14:16:13 -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 brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k43LGC44047884 for <ietf-sasl@imc.org>; Wed, 3 May 2006 14:16:12 -0700 (MST) (envelope-from Chris.Newman@Sun.COM)
Received: from fe-amer-02.sun.com ([192.18.108.176]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k43LGBxW018899 for <ietf-sasl@imc.org>; Wed, 3 May 2006 15:16:11 -0600 (MDT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) id <0IYP00001JXZVX00@mail-amer.sun.com> (original mail from Chris.Newman@Sun.COM) for ietf-sasl@imc.org; Wed, 03 May 2006 15:16:11 -0600 (MDT)
Received: from [10.1.110.5] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) with ESMTPSA id <0IYP00MNCKEWE660@mail-amer.sun.com>; Wed, 03 May 2006 15:16:11 -0600 (MDT)
Date: Wed, 03 May 2006 14:19:20 -0700
From: Chris Newman <Chris.Newman@Sun.COM>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
In-reply-to: <Pine.LNX.4.33L.0605031146240.15341-100000@minbar.fac.cs.cmu.edu>
To: Jeffrey Hutzelman <jhutz@cmu.edu>
Cc: Nicolas Williams <Nicolas.Williams@Sun.COM>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org
Message-id: <658DC209D01DA29908ACD2C0@[10.1.110.5]>
MIME-version: 1.0
X-Mailer: Mulberry/3.1.6 (Mac OS X)
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
References: <Pine.LNX.4.33L.0605031146240.15341-100000@minbar.fac.cs.cmu.edu>
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>

Jeffrey Hutzelman wrote on 5/3/06 11:58 -0400:
> On Tue, 2 May 2006, Chris Newman wrote:
>
>> Jeffrey Hutzelman wrote on 5/1/06 18:07 -0400:
>> >  At the GSS-API C-bindings level, this is accomplished by
>> > calling gss_accept_sec_context with acceptor_cred_handle set to
>> > GSS_C_NO_CREDENTIAL.  Note that this uses the system-default keytab;
>> > overriding this behavior requires the use of a mechanism-specific,
>> > implementation-specific API extension.
>>
>> Thanks, Jeff!
>>
>> Alexey, can you document this in the spec?
>
> That really doesn't seem to me to be something that belongs in this spec.
> Implementors of this mechanism are going to need to read RFC2743 and
> RFC2744, where the above information came from, and the question of
> whether to use specific server credentials or the default ones is an
> implementation matter.

The spec problem is this statement:

   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.

Specifically, the phrase "the fully qualified host name of the server" is 
nonsensical in the general case and makes this impossible to implement.  That 
text needs to be replaced.  Can you suggest replacement text that will 
interoperate?

                - Chris



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 k43Fxihs034208; Wed, 3 May 2006 08:59: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 k43Fxifj034207; Wed, 3 May 2006 08:59: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 minbar.fac.cs.cmu.edu (MINBAR.FAC.CS.CMU.EDU [128.2.185.161]) by balder-227.proper.com (8.13.5/8.13.5) with SMTP id k43FxhjL034193 for <ietf-sasl@imc.org>; Wed, 3 May 2006 08:59:43 -0700 (MST) (envelope-from jhutz@cmu.edu)
Received: from minbar.fac.cs.cmu.edu ([127.0.0.1]) by minbar.fac.cs.cmu.edu id aa15413; 3 May 2006 11:58 EDT
Date: Wed, 3 May 2006 11:58:58 -0400 (EDT)
From: Jeffrey Hutzelman <jhutz@cmu.edu>
X-X-Sender:  <jhutz@minbar.fac.cs.cmu.edu>
To: Chris Newman <Chris.Newman@Sun.COM>
cc: Nicolas Williams <Nicolas.Williams@Sun.COM>, Alexey Melnikov <alexey.melnikov@isode.com>, <ietf-sasl@imc.org>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
In-Reply-To: <6BB15B363E1B0AF327AA82CE@[10.1.110.5]>
Message-ID: <Pine.LNX.4.33L.0605031146240.15341-100000@minbar.fac.cs.cmu.edu>
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>

On Tue, 2 May 2006, Chris Newman wrote:

> Jeffrey Hutzelman wrote on 5/1/06 18:07 -0400:
> >  At the GSS-API C-bindings level, this is accomplished by
> > calling gss_accept_sec_context with acceptor_cred_handle set to
> > GSS_C_NO_CREDENTIAL.  Note that this uses the system-default keytab;
> > overriding this behavior requires the use of a mechanism-specific,
> > implementation-specific API extension.
>
> Thanks, Jeff!
>
> Alexey, can you document this in the spec?

That really doesn't seem to me to be something that belongs in this spec.
Implementors of this mechanism are going to need to read RFC2743 and
RFC2744, where the above information came from, and the question of
whether to use specific server credentials or the default ones is an
implementation matter.


> >> Many modern servers have multiple fully qualified host names.  In a high
> >> availability (HA) environment, there may be a direct host name and a shared
> >> host name (to distinguish the two nodes in the HA cluster).  And a
> >> multi-homed server may listen on multiple TCP/IP interfaces, each of which
> >> may have one or more host names.  Is there a way to dig the hostname out of
> >> the client's initial response?
> >
> > Yes, there is: GSS_Init_sec_context() callers must provide a target name
> > and GSS_inquire_sec_context() outputs that name.
>
> Thanks, Nico!
>
> Alexey, can you document this in the spec?
> The GSS_C_NO_CREDENTIAL approach sounds a bit simpler, but the
> inquire_sec_context approach sounds better for servers using a private keytab.

No, you're confused.

As an application, you don't know anything about keytabs, and you don't
get to mediate the Kerberos exchange that happens to establish a security
context, except that you're responsible for transporting the tokens across
the network.

You must provide some credential to GSS_Accept_sec_context.  This can be
something you got from GSS_Acquire_creds, or it can be a "null" credential
to get the default behavior, which may be mechanism and/or implementation
specific.  If you are programming in C, you get this behavior by using the
special value GSS_C_NO_CREDENTIAL; in other languages it may be different.
For the Kerberos mechanism, the default credential lets you accept
contexts targeted at any service for which you have a key.

If the mechanism you are using is Kerberos, current implementations use
the system keytab (at least, for Kerberos implementations which use
keytabs; neither the Kerberos API nor the storage of service keys is the
subject of any standard).  In order to select some other keytab, you must
use a non-standard extension which is specific to the Kerberos mechanism
and to your particular implementation.  It happens that a few common
implementations with C-langauge API's share an interface for this, but
that is not the subject of standards work.

Once you have established a GSS-API security context, and not before, you
can call GSS_Inquire_sec_context to find out things about the context.
One of the things you can find out is the GSS-API service name that was
used by the client to establish the connection.  There are several things
for which this could be useful to applications, but it is _not_ a
principal name and it cannot be used to select a service key with which to
complete context establishment, since (a) you don't get to call this API
until after the context is established and (b) you are not responsible for
selecting a service key.


Implementors of this mechanism MUST read and understand RFC2743, which
specifies the GSS-API.  Implementors programming in C will also need to
read and understand RFC2744, which defines the C-language bindings for the
GSS-API.  It is necessary and appropriate for the present spec to tell you
what API calls you have to make to implement the mechanism correctly, but
the question of what credentials you use and how you acquire them is
outside its scope.

-- 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 k432huQb093036; Tue, 2 May 2006 19:43:56 -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 k432huIS093035; Tue, 2 May 2006 19:43:56 -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 k432hsS2093029 for <ietf-sasl@imc.org>; Tue, 2 May 2006 19:43:55 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail1brm.Central.Sun.COM ([129.147.62.1]) by nwkea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id k432hsrM025092 for <ietf-sasl@imc.org>; Tue, 2 May 2006 19:43:54 -0700 (PDT)
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by centralmail1brm.Central.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id k432hrMq008331 for <ietf-sasl@imc.org>; Tue, 2 May 2006 20:43:53 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3) with ESMTP id k432hqjn020052; Tue, 2 May 2006 21:43:52 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3/Submit) id k432hpET020051; Tue, 2 May 2006 21:43:51 -0500 (CDT)
Date: Tue, 2 May 2006 21:43:51 -0500
From: Nicolas Williams <Nicolas.Williams@Sun.COM>
To: Chris Newman <Chris.Newman@Sun.COM>
Cc: Jeffrey Hutzelman <jhutz@cmu.edu>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <20060503024350.GF19392@binky.Central.Sun.COM>
Mail-Followup-To: Chris Newman <Chris.Newman@Sun.COM>, Jeffrey Hutzelman <jhutz@cmu.edu>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu> <FB7C175D81AE029455BAAAA2@[10.1.110.5]> <0FF857517780D49A6C70D515@sirius.fac.cs.cmu.edu> <6BB15B363E1B0AF327AA82CE@[10.1.110.5]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <6BB15B363E1B0AF327AA82CE@[10.1.110.5]>
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, May 02, 2006 at 04:39:01PM -0700, Chris Newman wrote:
> Alexey, can you document this in the spec?
> The GSS_C_NO_CREDENTIAL approach sounds a bit simpler, but the 
> inquire_sec_context approach sounds better for servers using a private 
> keytab.

BTW, if you want GSS_C_NO_CREDENTIAL semantics while forcibly limiting
what mechanisms you will accept security contexts for you can acquire a
credential handle for GSS_C_NO_NAME as the desired_name.

That said, I think it's OK for servers to use GSS_C_NO_CREDENTIAL and
then inspect the actual_mech output from GSS_Accept_sec_context() and
reject the context if that turns out to be anything other than the krb5
mech.

What's NOT OK is for servers to advertise "GSSAPI" without knowing that
they have krb5 acceptor credentials -- whether that knowledge comes from
configuration or from actually trying GSS_Acquire/Add_cred() I don't
really care (though I prefer the latter).

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 k42Na1xR085802; Tue, 2 May 2006 16:36:01 -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 k42Na15s085801; Tue, 2 May 2006 16:36:01 -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 brmea-mail-3.sun.com (brmea-mail-3.Sun.COM [192.18.98.34]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k42NZuWY085794 for <ietf-sasl@imc.org>; Tue, 2 May 2006 16:35:57 -0700 (MST) (envelope-from Chris.Newman@Sun.COM)
Received: from fe-amer-02.sun.com ([192.18.108.176]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id k42NZtKe002679 for <ietf-sasl@imc.org>; Tue, 2 May 2006 17:35:56 -0600 (MDT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) id <0IYN00E01VEKL100@mail-amer.sun.com> (original mail from Chris.Newman@Sun.COM) for ietf-sasl@imc.org; Tue, 02 May 2006 17:35:55 -0600 (MDT)
Received: from [10.1.110.5] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) with ESMTPSA id <0IYN00MVPW7SE600@mail-amer.sun.com>; Tue, 02 May 2006 17:35:55 -0600 (MDT)
Date: Tue, 02 May 2006 16:39:01 -0700
From: Chris Newman <Chris.Newman@Sun.COM>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
In-reply-to: <0FF857517780D49A6C70D515@sirius.fac.cs.cmu.edu> <20060501223249.GM15332@binky.Central.Sun.COM>
To: Jeffrey Hutzelman <jhutz@cmu.edu>, Nicolas Williams <Nicolas.Williams@Sun.COM>, Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Message-id: <6BB15B363E1B0AF327AA82CE@[10.1.110.5]>
MIME-version: 1.0
X-Mailer: Mulberry/3.1.6 (Mac OS X)
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu> <FB7C175D81AE029455BAAAA2@[10.1.110.5]> <0FF857517780D49A6C70D515@sirius.fac.cs.cmu.edu>
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>

Jeffrey Hutzelman wrote on 5/1/06 18:07 -0400:
>  At the GSS-API C-bindings level, this is accomplished by
> calling gss_accept_sec_context with acceptor_cred_handle set to
> GSS_C_NO_CREDENTIAL.  Note that this uses the system-default keytab;
> overriding this behavior requires the use of a mechanism-specific,
> implementation-specific API extension.

Thanks, Jeff!

Alexey, can you document this in the spec?

Nicolas Williams wrote on 5/1/06 17:32 -0500:
> Having said that, I think the I-D should say that servers MUST NOT offer
> "GSSAPI" unless they have acceptor credentials for the Kerberos V
> GSS-API Mechanism, while clients MUST reference use the OID of the
> Kerberos V GSS-API Mechanism as the value for the 'mech' input of
> GSS_Init_sec_context().

I concur.

>> Many modern servers have multiple fully qualified host names.  In a high
>> availability (HA) environment, there may be a direct host name and a shared
>> host name (to distinguish the two nodes in the HA cluster).  And a
>> multi-homed server may listen on multiple TCP/IP interfaces, each of which
>> may have one or more host names.  Is there a way to dig the hostname out of
>> the client's initial response?
>
> Yes, there is: GSS_Init_sec_context() callers must provide a target name
> and GSS_inquire_sec_context() outputs that name.

Thanks, Nico!

Alexey, can you document this in the spec?
The GSS_C_NO_CREDENTIAL approach sounds a bit simpler, but the 
inquire_sec_context approach sounds better for servers using a private keytab.

                - Chris



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 k41MWqJe018536; Mon, 1 May 2006 15:32: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 k41MWqqH018535; Mon, 1 May 2006 15:32: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 brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k41MWpan018529 for <ietf-sasl@imc.org>; Mon, 1 May 2006 15:32:52 -0700 (MST) (envelope-from nw141292@binky.Central.Sun.COM)
Received: from centralmail1brm.Central.Sun.COM ([129.147.62.1]) by brmea-mail-2.sun.com (8.12.10/8.12.9) with ESMTP id k41MWp8x024370 for <ietf-sasl@imc.org>; Mon, 1 May 2006 16:32:51 -0600 (MDT)
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by centralmail1brm.Central.Sun.COM (8.12.10+Sun/8.12.10/ENSMAIL,v2.2) with ESMTP id k41MWoMo009183 for <ietf-sasl@imc.org>; Mon, 1 May 2006 16:32:50 -0600 (MDT)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3) with ESMTP id k41MWoRH017346; Mon, 1 May 2006 17:32:50 -0500 (CDT)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.13.3+Sun/8.13.3/Submit) id k41MWnjt017345; Mon, 1 May 2006 17:32:49 -0500 (CDT)
Date: Mon, 1 May 2006 17:32:49 -0500
From: Nicolas Williams <Nicolas.Williams@Sun.COM>
To: Chris Newman <Chris.Newman@Sun.COM>
Cc: Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
Message-ID: <20060501223249.GM15332@binky.Central.Sun.COM>
Mail-Followup-To: Chris Newman <Chris.Newman@Sun.COM>, Alexey Melnikov <alexey.melnikov@isode.com>, ietf-sasl@imc.org
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <30E5513318E96209421AC019@[10.1.110.5]>
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 Mon, May 01, 2006 at 11:49:10AM -0700, Chris Newman wrote:
> Section 3 / GSSAPI in Kerberos 5 mode?
> 
> I apologize that my understanding of GSSAPI is primitive, but I believe 
> GSSAPI must be configured with a default mechanism.  As this protocol is 
> for Kerberos v5 only, I presume the GSSAPI that's used on the client must 
> be configured with Kerberos 5 as the default mechanism and not something 
> else (e.g. SPNEGO). Shouldn't the specification make that explicit 
> somewhere?  Does the server need a similar configuration, or can it figure 
> it out based on the client's initial response?

First off, I think the I-D has to be very clear about "GSS-API" vs.
"GSSAPI" -- the former being the short form of "Generic Security Service
Application Program Interface" and the latter being a misnomer for the
"Kerberos V GSS-API Mechanism."

Having said that, I think the I-D should say that servers MUST NOT offer
"GSSAPI" unless they have acceptor credentials for the Kerberos V
GSS-API Mechanism, while clients MUST reference use the OID of the
Kerberos V GSS-API Mechanism as the value for the 'mech' input of
GSS_Init_sec_context().

> Section 3.2 / host name:
> 
> >  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.
> 
> Many modern servers have multiple fully qualified host names.  In a high 
> availability (HA) environment, there may be a direct host name and a shared 
> host name (to distinguish the two nodes in the HA cluster).  And a 
> multi-homed server may listen on multiple TCP/IP interfaces, each of which 
> may have one or more host names.  Is there a way to dig the hostname out of 
> the client's initial response?

Yes, there is: GSS_Init_sec_context() callers must provide a target name
and GSS_inquire_sec_context() outputs that name.

> As I'm not familiar with how GSSAPI/Kerberos deals with multiple server 
> host names, I can't suggest text.  But I do find this sentence ambiguous: I 
> wouldn't know how to implement it.

The GSS-API handles this, and for SASL this is an API issue.

Of course, whether it is possible depends on the mechanism transporting
that name, which, IIRC, GSS-API mechanisms MUST do when using MUTUAL
authentication.

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 k41M7xSC017685; Mon, 1 May 2006 15:07:59 -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 k41M7xbT017684; Mon, 1 May 2006 15:07:59 -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 k41M7wut017678 for <ietf-sasl@imc.org>; Mon, 1 May 2006 15:07: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.5/8.13.5) with ESMTP id k41M7ujC025412 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 1 May 2006 18:07:56 -0400 (EDT)
Date: Mon, 01 May 2006 18:07:56 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: Chris Newman <Chris.Newman@Sun.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-gssapi-04.txt
Message-ID: <0FF857517780D49A6C70D515@sirius.fac.cs.cmu.edu>
In-Reply-To: <FB7C175D81AE029455BAAAA2@[10.1.110.5]>
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu> <FB7C175D81AE029455BAAAA2@[10.1.110.5]>
Originator-Info: login-token=Mulberry:019OwuPF5Uo7BAN6a9J2peq4teZWd7IKdhYVyhKmw=; 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 Monday, May 01, 2006 02:41:07 PM -0700 Chris Newman 
<Chris.Newman@Sun.COM> wrote:

> The the spec needs to state that the client should pass the Kerbero 5 OID
> to GSS_Init_sec_context.

Well, it sort of does.  Section 3.1 specifies what parameters must be 
passed to GSS_Init_sec_context, including...

"... mech_type of the GSSAPI mechanism for which this SASL mechanism is 
registered, ..."

That wording was more meaningful when this was a document defining a family 
of mechanisms, since there was a one-to-one mapping between GSSAPI 
mechanism OID's and SASL mechansism names which was defined elsewhere in 
the document.  Now it's a single-mechanism document which always uses the 
Kerberos GSS-API mechanism, as noted in section 2.  Instead of "of the 
GSSAPI mechanism for which this SASL mechanism is registered", the text 
could say "of the Kerberos GSS-API mechanism".

FWIW, while the dash is often omitted in common usage, the formal 
abbreviation for "Generic Security Service Application Program Interface" 
is "GSS-API".  This document really should be consistently correct about 
this, except for the SASL mechanism name itself, which must be "GSSAPI" (no 
dash) to be consistent with the deployed implementations whose behavior we 
are trying to document.

> Does it also need to state that for the server?

Not exactly.  RFC2743 defines the mech_type parameter to 
GSS_Accept_sec_context as an _output_ parameter, indicating what mechanism 
was actually used.  For standards-track mechanisms, there is common framing 
for the initial context token which makes it possible for the accepting 
GSS-API to tell what mechanism is in use.  However, an acceptor which has 
negotiated use of a particular mechanism at a higher layer (as SASL does) 
must check that the returned mech_type is the one expected.


> I'm sorry I didn't state the question clearly so you're answering the
> wrong question.  Let me try again:


> Presumably, a server with multiple host names will have a fixed set of
> host names which it accepts for Kerberos authentication.  Can the server
> determine which host name the client used in its initial response, and
> use that host name if it's one of the ones on the fixed list?


> In SSL/TLS, the typical answer is that mail.domain1.com and
> mail.domain2.com must have different IP addresses so the server knows
> which certificate to offer based on the result from getsockname().  I'm
> wondering if there is a better answer for Kerberos or if it's equally
> broken.

Kerberos does not have that particular flaw, for two reasons.

First, in TLS, the server proves its identity by presenting a certificate 
which asserts a particular identity; if it chooses the wrong cert, it 
doesn't work.  As you pointed out, TLS has the flaw that there is no way 
for the client to indicate to the server what identity it's interested in, 
so a server with more than one identity has to guess.  In Kerberos, the 
server proves its identity by its ability to decrypt a message protected by 
a key known only to the service the client wants to talk to.  Since the 
server doesn't have to claim a particular identity, there's no opportunity 
for it to pick the wrong one.

Second, Kerberos tickets include information about the service principal 
the ticket is for, so the server knows which key to use to decrypt the 
ticket.  At the Kerberos API layer, an application need only pass a NULL 
service principal name to krb5_rd_req to automatically determine the 
correct service principal to use.  At the GSS-API C-bindings level, this is 
accomplished by calling gss_accept_sec_context with acceptor_cred_handle 
set to GSS_C_NO_CREDENTIAL.  Note that this uses the system-default keytab; 
overriding this behavior requires the use of a mechanism-specific, 
implementation-specific API extension.

-- 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 k41Lc3Zv015927; Mon, 1 May 2006 14:38:03 -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 k41Lc3N0015926; Mon, 1 May 2006 14:38:03 -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 brmea-mail-1.sun.com (brmea-mail-1.Sun.COM [192.18.98.31]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k41Lc2FL015920 for <ietf-sasl@imc.org>; Mon, 1 May 2006 14:38:02 -0700 (MST) (envelope-from Chris.Newman@Sun.COM)
Received: from fe-amer-01.sun.com ([192.18.108.175]) by brmea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id k41Lc13i010695 for <ietf-sasl@imc.org>; Mon, 1 May 2006 15:38:02 -0600 (MDT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) id <0IYL00G01VL02J00@mail-amer.sun.com> (original mail from Chris.Newman@Sun.COM) for ietf-sasl@imc.org; Mon, 01 May 2006 15:38:01 -0600 (MDT)
Received: from [10.1.110.5] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) with ESMTPSA id <0IYL00E5IW3AZP00@mail-amer.sun.com>; Mon, 01 May 2006 15:38:01 -0600 (MDT)
Date: Mon, 01 May 2006 14:41:07 -0700
From: Chris Newman <Chris.Newman@Sun.COM>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
In-reply-to: <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu>
To: Jeffrey Hutzelman <jhutz@cmu.edu>, Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Message-id: <FB7C175D81AE029455BAAAA2@[10.1.110.5]>
MIME-version: 1.0
X-Mailer: Mulberry/3.1.6 (Mac OS X)
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]> <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu>
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>

Jeffrey Hutzelman wrote on 5/1/06 17:01 -0400:
> On Monday, May 01, 2006 11:49:10 AM -0700 Chris Newman <Chris.Newman@Sun.COM>
> wrote:
>
>> Section 3 / GSSAPI in Kerberos 5 mode?
>>
>> I apologize that my understanding of GSSAPI is primitive, but I believe
>> GSSAPI must be configured with a default mechanism.  As this protocol is
>> for Kerberos v5 only, I presume the GSSAPI that's used on the client must
>> be configured with Kerberos 5 as the default mechanism and not something
>> else (e.g. SPNEGO). Shouldn't the specification make that explicit
>> somewhere?  Does the server need a similar configuration, or can it
>> figure it out based on the client's initial response?
>
> A user of the GSS-API selects a mechanism by passing in a mechanism OID as
> one of the parameters to GSS_Init_sec_context.  While it is possible for an
> application to pass in a "NULL" mechanism OID parameter to select a "default"
> mechanism, it would be incorrect for an implementation of the present
> specification to do so, since the use of a particular mechanism is mandated.
>
> Although it's not relevant to the current specification, selection of a
> "default" mechanism is an implementation matter.  In most implementations
> that existed at the time RFC2743 was written, and in most that are widely
> deployed today, the GSS-API implementation supports only a single mechanism,
> and no configuration is required.  Manual selection of a default mechanism is
> required only for multi-mechanism GSS-API implementations, which are only now
> becoming common.  In any case, this issue is only relevant for deployment of
> applications which request the "default" mechansim, and neither the present
> 'GSSAPI' mechanism nor the upcoming 'GSS2-*' family of mechanisms will permit
> this; each of these SASL mechanisms require the use of a specific GSS-API
> mechanism.

The the spec needs to state that the client should pass the Kerbero 5 OID to 
GSS_Init_sec_context.  Does it also need to state that for the server?

>> Section 3.2 / host name:
>>
>>>   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.
>>
>> Many modern servers have multiple fully qualified host names.  In a high
>> availability (HA) environment, there may be a direct host name and a
>> shared host name (to distinguish the two nodes in the HA cluster).  And a
>> multi-homed server may listen on multiple TCP/IP interfaces, each of
>> which may have one or more host names.  Is there a way to dig the
>> hostname out of the client's initial response?
>
> As this is an authentication name, it is unsafe to use a name obtained from
> insecure DNS, as by a SRV lookup, or one reported by the server itself. The
> correct behavior today, for any application using GSS-API host-based service
> names, is to use the configured fully-qualified name of the service, and
> _not_ the hostname obtained from the SRV record of a host which happens to be
> _providing_ the service.

I'm sorry I didn't state the question clearly so you're answering the wrong 
question.  Let me try again:

Presumably, a server with multiple host names will have a fixed set of host 
names which it accepts for Kerberos authentication.  Can the server determine 
which host name the client used in its initial response, and use that host name 
if it's one of the ones on the fixed list?  If not, is there another way for 
the server to figure out which hostname the client is expecting it to use?

I'm trying to figure out how to implement the server-side of this.  The client 
side is straightforward and I know to use the pre-DNS name for Kerberos, just 
as it's used for SSL/TLS.

>> As I'm not familiar with how GSSAPI/Kerberos deals with multiple server
>> host names, I can't suggest text.  But I do find this sentence ambiguous:
>> I wouldn't know how to implement it.
>
> You use the configured name, and _never_ a name you got from reverse
> resolution or a SRV record.  Today, there are legacy GSS-API implementations
> which will do reverse-resolution for you, but at least in the Kerberos case,
> RFC4120 and RFC4121 prohibit this behavior, and we expect that eventually
> implementations will comply, though the transition issues are somewhat
> complex (unfortunately, just changing breaks things for a lot of people who
> depend on the insecure behavior today).

I know not to do a SRV lookup and that wouldn't solve the problem anyway.  Let 
me state a simplified case: suppose there is one server with two host names, 
say "mail.domain1.com" and "mail.domain2.com".  The server legitimately serves 
mail for both domains.  When a client connects, the client will be configured 
to use one of those two domains.  How does the server know which one the client 
intended to use?  How does the server know whether to pass "mail.domain1.com" 
or "mail.domain2.com" to GSS_Import_name to form the desired_name for 
GSS_Acquire_cred?

In SSL/TLS, the typical answer is that mail.domain1.com and mail.domain2.com 
must have different IP addresses so the server knows which certificate to offer 
based on the result from getsockname().  I'm wondering if there is a better 
answer for Kerberos or if it's equally broken.

                - Chris



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 k41L1ckN014198; Mon, 1 May 2006 14:01:38 -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 k41L1cnF014197; Mon, 1 May 2006 14:01:38 -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 k41L1boQ014191 for <ietf-sasl@imc.org>; Mon, 1 May 2006 14:01:38 -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.5/8.13.5) with ESMTP id k41L1YOx024038 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 1 May 2006 17:01:34 -0400 (EDT)
Date: Mon, 01 May 2006 17:01:34 -0400
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: Chris Newman <Chris.Newman@Sun.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-gssapi-04.txt
Message-ID: <78AFA374FCE61C987D1E3BB2@sirius.fac.cs.cmu.edu>
In-Reply-To: <30E5513318E96209421AC019@[10.1.110.5]>
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]>
Originator-Info: login-token=Mulberry:01xOm3Ii5RLJYQNC+j92fnkVtb7k1LHTAxXuWH+mk=; 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 Monday, May 01, 2006 11:49:10 AM -0700 Chris Newman 
<Chris.Newman@Sun.COM> wrote:

> Section 3 / GSSAPI in Kerberos 5 mode?
>
> I apologize that my understanding of GSSAPI is primitive, but I believe
> GSSAPI must be configured with a default mechanism.  As this protocol is
> for Kerberos v5 only, I presume the GSSAPI that's used on the client must
> be configured with Kerberos 5 as the default mechanism and not something
> else (e.g. SPNEGO). Shouldn't the specification make that explicit
> somewhere?  Does the server need a similar configuration, or can it
> figure it out based on the client's initial response?

A user of the GSS-API selects a mechanism by passing in a mechanism OID as 
one of the parameters to GSS_Init_sec_context.  While it is possible for an 
application to pass in a "NULL" mechanism OID parameter to select a 
"default" mechanism, it would be incorrect for an implementation of the 
present specification to do so, since the use of a particular mechanism is 
mandated.

Although it's not relevant to the current specification, selection of a 
"default" mechanism is an implementation matter.  In most implementations 
that existed at the time RFC2743 was written, and in most that are widely 
deployed today, the GSS-API implementation supports only a single 
mechanism, and no configuration is required.  Manual selection of a default 
mechanism is required only for multi-mechanism GSS-API implementations, 
which are only now becoming common.  In any case, this issue is only 
relevant for deployment of applications which request the "default" 
mechansim, and neither the present 'GSSAPI' mechanism nor the upcoming 
'GSS2-*' family of mechanisms will permit this; each of these SASL 
mechanisms require the use of a specific GSS-API mechanism.


> As the SASL initial response is defined to be optional (and in the case
> of IMAP it's not in the base specification), what does the server do when
> it receives no initial response?  I presume the server sends an empty
> challenge, but it'd be nice to explicitly say this is a "client goes
> first" mechanism (regardless of use of the initial response).

I believe it is indeed necessary for a SASL mechanism to specify the 
required behavior in this situation.  The empty-challenge behavior you 
describe seems reasonable, but should be explicitly spelled out.


> Section 3.2 / host name:
>
>>   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.
>
> Many modern servers have multiple fully qualified host names.  In a high
> availability (HA) environment, there may be a direct host name and a
> shared host name (to distinguish the two nodes in the HA cluster).  And a
> multi-homed server may listen on multiple TCP/IP interfaces, each of
> which may have one or more host names.  Is there a way to dig the
> hostname out of the client's initial response?

As this is an authentication name, it is unsafe to use a name obtained from 
insecure DNS, as by a SRV lookup, or one reported by the server itself. 
The correct behavior today, for any application using GSS-API host-based 
service names, is to use the configured fully-qualified name of the 
service, and _not_ the hostname obtained from the SRV record of a host 
which happens to be _providing_ the service.

This means that if multiple hosts are providing service under the same 
name, then they must all be able to accept GSS-API contexts under that name 
(with Kerberos, this means they need to share a service key).  And, if a 
host provides service under multiple names, it must be able to accept 
GSS-API contexts under any of those names (with Kerberos, that typically 
means the host has one service key for each name).


There is work currently going on in the KITTEN working group to define a 
"domain-based" service name form, in which the service name is derived from 
both the DNS name of the _service_ and the DNS name of the _host_ providing 
that service, in such a way that the latter may be obtained from an 
insecure source such as reverse DNS resolution, provided the former is 
still obtained in a secure fashion.  When complete, this will allow 
deployments in which multiple hosts which provide service under the same 
name need not share any credentials.

> As I'm not familiar with how GSSAPI/Kerberos deals with multiple server
> host names, I can't suggest text.  But I do find this sentence ambiguous:
> I wouldn't know how to implement it.

You use the configured name, and _never_ a name you got from reverse 
resolution or a SRV record.  Today, there are legacy GSS-API 
implementations which will do reverse-resolution for you, but at least in 
the Kerberos case, RFC4120 and RFC4121 prohibit this behavior, and we 
expect that eventually implementations will comply, though the transition 
issues are somewhat complex (unfortunately, just changing breaks things for 
a lot of people who depend on the insecure behavior today).

-- 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 k41JSDe3010738; Mon, 1 May 2006 12:28:13 -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 k41JSD7e010737; Mon, 1 May 2006 12:28:13 -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 wrk187.corp.jabber.com (corp-fw-main.jabber.com [207.182.164.14]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k41JSC9c010717 for <ietf-sasl@imc.org>; Mon, 1 May 2006 12:28:12 -0700 (MST) (envelope-from stpeter@jabber.org)
Received: from [127.0.0.1] (localhost [127.0.0.1]) by wrk187.corp.jabber.com (Postfix) with ESMTP id 5FFDC4D6BE2 for <ietf-sasl@imc.org>; Mon,  1 May 2006 13:28:16 -0600 (MDT)
Message-ID: <4456614F.7020500@jabber.org>
Date: Mon, 01 May 2006 13:28:15 -0600
From: Peter Saint-Andre <stpeter@jabber.org>
User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060308)
MIME-Version: 1.0
To: ietf-sasl@imc.org
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org> <30E5513318E96209421AC019@[10.1.110.5]>
In-Reply-To: <30E5513318E96209421AC019@[10.1.110.5]>
X-Enigmail-Version: 0.94.0.0
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms020109080607000000000208"
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>

This is a cryptographically signed message in MIME format.

--------------ms020109080607000000000208
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Newman wrote:

> Section 3.2 / host name:
> 
>>   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.
> 
> Many modern servers have multiple fully qualified host names.  In a high
> availability (HA) environment, there may be a direct host name and a
> shared host name (to distinguish the two nodes in the HA cluster).  And
> a multi-homed server may listen on multiple TCP/IP interfaces, each of
> which may have one or more host names.  Is there a way to dig the
> hostname out of the client's initial response?
> 
> As I'm not familiar with how GSSAPI/Kerberos deals with multiple server
> host names, I can't suggest text.  But I do find this sentence
> ambiguous: I wouldn't know how to implement it.

We've had some confusion about this in the XMPP world (cf. RFC 3920).
Specifically, in some deployments, an XMPP server may have associated
with it multiple connection managers. How does a client determine the
service principal name of the connection manager to which it has
connected if connection managers are assigned dynamically? There is some
discussion here:

http://mail.jabber.org/pipermail/xmppwg/2006-April/002380.html

I freely grant that this may be more of an XMPP issue than a GSSAPI
issue, but I wonder what we should be recommending to implementors
regarding the process of selecting service principal names for services
(such as XMPP servers) that are discovered via SRV...

Peter

- --
Peter Saint-Andre
Jabber Software Foundation
http://www.jabber.org/people/stpeter.shtml

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEVmFPNF1RSzyt3NURAoFnAJkBu4sjYcRC/FAAIQmaQIL2PHfR6wCg5mct
oN7BrNFvyPocnCyqfkFsNR8=
=4B3K
-----END PGP SIGNATURE-----

--------------ms020109080607000000000208
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIKdDCC
BTYwggMeoAMCAQICAwGUqzANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290IENBMR4w
HAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmlu
ZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNTEw
MjUyMjM4NDhaFw0wNjEwMjUyMjM4NDhaMGoxHTAbBgNVBAMTFEouIFBldGVyIFNhaW50LUFu
ZHJlMSEwHwYJKoZIhvcNAQkBFhJzdHBldGVyQGphYmJlci5vcmcxJjAkBgkqhkiG9w0BCQEW
F2oucGV0ZXJAc2FpbnQtYW5kcmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
AQEA1IwvV3ywawrPfb66pLs0KqIj5QKXYQ45EUlTzKp6iHeCQzd+Kr8AOO21dcs/s0VcQqno
mVHDuqp0B+53Dp6Re66yc1x89U3HFFWw/HfLuAzbngoD9PmmSLaJsXGfO0PyXQPB5GVJfVnb
RW0qfbZ7l278DATqilmBqGOvoDaJks/XjRvq7tt/0mPWlmWOplw/Nlniy0o6GlbwMnLLgNfM
UG30nhWZj70qW5NZyPTjDQAeYw6LxFieXIk9+6gCc84d2j3VTBglPFe0JkUmdVDXdcFyvU7N
UZWmWdMzvCu9tD3nb+6CipKATjYPQNRxMFGcfnP7HxeFLTBYoy8BHL33wQIDAQABo4HVMIHS
MAwGA1UdEwEB/wQCMAAwVgYJYIZIAYb4QgENBEkWR1RvIGdldCB5b3VyIG93biBjZXJ0aWZp
Y2F0ZSBmb3IgRlJFRSBoZWFkIG92ZXIgdG8gaHR0cDovL3d3dy5DQWNlcnQub3JnMDIGCCsG
AQUFBwEBBCYwJDAiBggrBgEFBQcwAYYWaHR0cDovL29jc3AuY2FjZXJ0Lm9yZzA2BgNVHREE
LzAtgRJzdHBldGVyQGphYmJlci5vcmeBF2oucGV0ZXJAc2FpbnQtYW5kcmUuY29tMA0GCSqG
SIb3DQEBBAUAA4ICAQAV/ddHlibIhbnXGnEs1HUglGX5xCIZRW6g8jpCOKIgguVvjHFdvhyl
O67VqjAXMCYKsWfI6Sfu6YyoDtSJpq8yWa/83nEq6aMOWtC6N2I9PINAojZelq97W6tHYrrJ
L6ql6QnS0ubtlWJEcKZoVglMZ+gmqGeuKGmoT25Lz7pslxN7/HXBiRqFaHh/gBqFSy0AGLQA
NvDsUx1VnYORRT3E+y1p1L82FgWKXHOLBZyaz2Eoi3CCroIA7JxhfQV+NNtVxhxmUyWj821c
DHc1DLp3B9W4hW4PYdfn8Hdzepwug2dYovjyFYEU2kekC38iD9/VuuLK9Z4C66FD1uqCAFfd
1NRl1LzVIMVml991Ejmeju3h5WvdfFMAteDQjmfGgqB9CFPIM3MPKM/Ir3GeaoQ8OV55U1zy
2N5hkHEJdFeNIvg4AE+up7EKkMTdTuXWlYfAG2Tb8ToBrWFqYCUdxorhWM1q2TXrmCMXmsoH
FPW7OIjaNyHykBoU3ZArm8I61UeGcvbtzf4AbDqXLvBjdup7oJofAWqY/2ZsWwmo8m7XqoYn
BCZ/QOcPiZ+OwlhkXzh+qpk4ZBsy5FEFwt9rQQoyQJpaIwF1CFKuPzH3kl/2EJY0GjOtLGCO
GMc3fAsxqV6YffveN18M4OYhLOkYay1QcgwJ81DSYvHs/2N5NjD4rDCCBTYwggMeoAMCAQIC
AwGUqzANBgkqhkiG9w0BAQQFADB5MRAwDgYDVQQKEwdSb290IENBMR4wHAYDVQQLExVodHRw
Oi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmluZyBBdXRob3JpdHkx
ITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0wNTEwMjUyMjM4NDhaFw0w
NjEwMjUyMjM4NDhaMGoxHTAbBgNVBAMTFEouIFBldGVyIFNhaW50LUFuZHJlMSEwHwYJKoZI
hvcNAQkBFhJzdHBldGVyQGphYmJlci5vcmcxJjAkBgkqhkiG9w0BCQEWF2oucGV0ZXJAc2Fp
bnQtYW5kcmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1IwvV3ywawrP
fb66pLs0KqIj5QKXYQ45EUlTzKp6iHeCQzd+Kr8AOO21dcs/s0VcQqnomVHDuqp0B+53Dp6R
e66yc1x89U3HFFWw/HfLuAzbngoD9PmmSLaJsXGfO0PyXQPB5GVJfVnbRW0qfbZ7l278DATq
ilmBqGOvoDaJks/XjRvq7tt/0mPWlmWOplw/Nlniy0o6GlbwMnLLgNfMUG30nhWZj70qW5NZ
yPTjDQAeYw6LxFieXIk9+6gCc84d2j3VTBglPFe0JkUmdVDXdcFyvU7NUZWmWdMzvCu9tD3n
b+6CipKATjYPQNRxMFGcfnP7HxeFLTBYoy8BHL33wQIDAQABo4HVMIHSMAwGA1UdEwEB/wQC
MAAwVgYJYIZIAYb4QgENBEkWR1RvIGdldCB5b3VyIG93biBjZXJ0aWZpY2F0ZSBmb3IgRlJF
RSBoZWFkIG92ZXIgdG8gaHR0cDovL3d3dy5DQWNlcnQub3JnMDIGCCsGAQUFBwEBBCYwJDAi
BggrBgEFBQcwAYYWaHR0cDovL29jc3AuY2FjZXJ0Lm9yZzA2BgNVHREELzAtgRJzdHBldGVy
QGphYmJlci5vcmeBF2oucGV0ZXJAc2FpbnQtYW5kcmUuY29tMA0GCSqGSIb3DQEBBAUAA4IC
AQAV/ddHlibIhbnXGnEs1HUglGX5xCIZRW6g8jpCOKIgguVvjHFdvhylO67VqjAXMCYKsWfI
6Sfu6YyoDtSJpq8yWa/83nEq6aMOWtC6N2I9PINAojZelq97W6tHYrrJL6ql6QnS0ubtlWJE
cKZoVglMZ+gmqGeuKGmoT25Lz7pslxN7/HXBiRqFaHh/gBqFSy0AGLQANvDsUx1VnYORRT3E
+y1p1L82FgWKXHOLBZyaz2Eoi3CCroIA7JxhfQV+NNtVxhxmUyWj821cDHc1DLp3B9W4hW4P
Ydfn8Hdzepwug2dYovjyFYEU2kekC38iD9/VuuLK9Z4C66FD1uqCAFfd1NRl1LzVIMVml991
Ejmeju3h5WvdfFMAteDQjmfGgqB9CFPIM3MPKM/Ir3GeaoQ8OV55U1zy2N5hkHEJdFeNIvg4
AE+up7EKkMTdTuXWlYfAG2Tb8ToBrWFqYCUdxorhWM1q2TXrmCMXmsoHFPW7OIjaNyHykBoU
3ZArm8I61UeGcvbtzf4AbDqXLvBjdup7oJofAWqY/2ZsWwmo8m7XqoYnBCZ/QOcPiZ+Owlhk
Xzh+qpk4ZBsy5FEFwt9rQQoyQJpaIwF1CFKuPzH3kl/2EJY0GjOtLGCOGMc3fAsxqV6Yffve
N18M4OYhLOkYay1QcgwJ81DSYvHs/2N5NjD4rDGCA4cwggODAgEBMIGAMHkxEDAOBgNVBAoT
B1Jvb3QgQ0ExHjAcBgNVBAsTFWh0dHA6Ly93d3cuY2FjZXJ0Lm9yZzEiMCAGA1UEAxMZQ0Eg
Q2VydCBTaWduaW5nIEF1dGhvcml0eTEhMB8GCSqGSIb3DQEJARYSc3VwcG9ydEBjYWNlcnQu
b3JnAgMBlKswCQYFKw4DAhoFAKCCAdswGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkq
hkiG9w0BCQUxDxcNMDYwNTAxMTkyODE1WjAjBgkqhkiG9w0BCQQxFgQU9ezs+2wq1FOk43/l
2hSXafw9nl0wUgYJKoZIhvcNAQkPMUUwQzAKBggqhkiG9w0DBzAOBggqhkiG9w0DAgICAIAw
DQYIKoZIhvcNAwICAUAwBwYFKw4DAgcwDQYIKoZIhvcNAwICASgwgZEGCSsGAQQBgjcQBDGB
gzCBgDB5MRAwDgYDVQQKEwdSb290IENBMR4wHAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5v
cmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmluZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEW
EnN1cHBvcnRAY2FjZXJ0Lm9yZwIDAZSrMIGTBgsqhkiG9w0BCRACCzGBg6CBgDB5MRAwDgYD
VQQKEwdSb290IENBMR4wHAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMT
GUNBIENlcnQgU2lnbmluZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2Fj
ZXJ0Lm9yZwIDAZSrMA0GCSqGSIb3DQEBAQUABIIBAJ7Ae0fTdAvTbO0RTJfC/B1CbxPxucLz
Kj/iqR3HCcFoQIFovPA//uhCVNJsV+TywDELNhTcsQPav1fJga7BZdBB46HWwXkrQOPe6C2m
0LiDJOdw9MOq4CzsiIdrgwoq7tl0YbjPop33Njr18Bq4MM97h5iYR4jAo1dcJZK/kF4xRL+N
6PxLGsn1UTX3zf0bUt98aanK/DgEU2YiaXOKHlzFD1SyoJ6vPz/sQ+9mmgezYPsQdfS+I3bN
Cs1vI4ZMgD2ClCwHhwmTh/2C9CTneVuacxVHw+N+cF0l2GpNtbcND3Dnw2mlOlE3AYPa4uae
aRGtGjEtVDhgabzFuUSwSC8AAAAAAAA=
--------------ms020109080607000000000208--



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 k41IkH6I008856; Mon, 1 May 2006 11:46:17 -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 k41IkH2f008855; Mon, 1 May 2006 11:46: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 brmea-mail-1.sun.com (brmea-mail-1.Sun.COM [192.18.98.31]) by balder-227.proper.com (8.13.5/8.13.5) with ESMTP id k41IkFer008847 for <ietf-sasl@imc.org>; Mon, 1 May 2006 11:46:16 -0700 (MST) (envelope-from Chris.Newman@Sun.COM)
Received: from fe-amer-05.sun.com ([192.18.108.179]) by brmea-mail-1.sun.com (8.12.10/8.12.9) with ESMTP id k41IkF3i010798 for <ietf-sasl@imc.org>; Mon, 1 May 2006 12:46:15 -0600 (MDT)
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) id <0IYL00301NZQ5H00@mail-amer.sun.com> (original mail from Chris.Newman@Sun.COM) for ietf-sasl@imc.org; Mon, 01 May 2006 12:46:15 -0600 (MDT)
Received: from [10.1.110.5] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep  9 2005)) with ESMTPSA id <0IYL00670O4PXU30@mail-amer.sun.com>; Mon, 01 May 2006 12:46:11 -0600 (MDT)
Date: Mon, 01 May 2006 11:49:10 -0700
From: Chris Newman <Chris.Newman@Sun.COM>
Subject: Re: WG Last Call: draft-ietf-sasl-gssapi-04.txt
In-reply-to: <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Cc: ietf-sasl@imc.org
Message-id: <30E5513318E96209421AC019@[10.1.110.5]>
MIME-version: 1.0
X-Mailer: Mulberry/3.1.6 (Mac OS X)
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
Content-disposition: inline
References: <7.0.1.0.0.20060412083531.021ab248@OpenLDAP.org> <7.0.1.0.0.20060429071522.021aa9d8@OpenLDAP.org>
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>

Minor: All the whitespace with the short sections is distracting.  Could you 
please add this to the XML source:
  <?rfc compact="yes"?>
  <?rfc subcompact="no"?>

Abstract Nit: RFC editor rules forbid use of [] references; please remove them.

Section 3 / GSSAPI in Kerberos 5 mode?

I apologize that my understanding of GSSAPI is primitive, but I believe GSSAPI 
must be configured with a default mechanism.  As this protocol is for Kerberos 
v5 only, I presume the GSSAPI that's used on the client must be configured with 
Kerberos 5 as the default mechanism and not something else (e.g. SPNEGO). 
Shouldn't the specification make that explicit somewhere?  Does the server need 
a similar configuration, or can it figure it out based on the client's initial 
response?

Section 3.2 / initial response:

As the SASL initial response is defined to be optional (and in the case of IMAP 
it's not in the base specification), what does the server do when it receives 
no initial response?  I presume the server sends an empty challenge, but it'd 
be nice to explicitly say this is a "client goes first" mechanism (regardless 
of use of the initial response).

Section 3.2 / host name:

>   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.

Many modern servers have multiple fully qualified host names.  In a high 
availability (HA) environment, there may be a direct host name and a shared 
host name (to distinguish the two nodes in the HA cluster).  And a multi-homed 
server may listen on multiple TCP/IP interfaces, each of which may have one or 
more host names.  Is there a way to dig the hostname out of the client's 
initial response?

As I'm not familiar with how GSSAPI/Kerberos deals with multiple server host 
names, I can't suggest text.  But I do find this sentence ambiguous: I wouldn't 
know how to implement it.


Otherwise, I've reviewed this specification, from a SASL/Applications 
perspective and find it acceptable.  I have minimal GSSAPI expertise so I'm not 
competent to review the specification on the technical aspects related to 
GSSAPI usage.

                - Chris

Kurt D. Zeilenga wrote on 4/29/06 7:31 -0700:

>
> This WG Last Call is hereby extended to 8 May 2006 to allow
> other WG members to contribute to review of this document.
>
> I do not feel the I-D has received adequate WG review
> necessary to support a WG recommendation for publication
> on the Standards Track.  So, again, please read and
> comment.
>
> Kurt
>
> At 08:46 AM 4/12/2006, Kurt D. Zeilenga wrote:
>
>> This message initiates a SASL Working Group Last Call on the
>> document:
>>
>>  Title:     The Kerberos V5 ("GSSAPI") SASL mechanism
>>  Editor:    A. Melnikov
>>  Filename:  draft-ietf-sasl-gssapi-04.txt
>>
>> The purpose of this WG Last Call is to ensure that the Working
>> Group has achieved consensus that the document is suitable for
>> publication on the Standards Track.
>>
>> Please review the document for both technical and editorial
>> problems.  Technical issues should be discussed on this list.
>> Editorial issues may be sent to the document editor.  In
>> the case that a reviewer finds no technical issues, the
>> reviewer should send a note to the WG chairs indicating
>> so.
>>
>> The Last Call period will close on Friday, 28 April 2006.
>>
>> Upon completion of the WG Last Call, the WG chair(s) will take
>> action based upon the consensus of the WG.  Possible actions
>> include:
>>
>>  1) recommending to the IETF Security Area Directors
>>     that the document, after possible editorial or
>>     other minor changes, be considered by the IESG
>>     for publication as a Standard Track RFC; or
>>
>>  2) requiring that outstanding issues be adequately
>>     addressed prior to further action (including,
>>     possibly, another WG Last Call).
>>
>> Remember that it is our responsibility as Working Group members
>> to ensure the quality of our documents.  So, please read and
>> comment!
>>
>> Kurt Zeilenga, SASL WG co-chair
>
>





