
From jhutz@cmu.edu  Tue Dec  1 07:41:06 2009
Return-Path: <jhutz@cmu.edu>
X-Original-To: sasl@core3.amsl.com
Delivered-To: sasl@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F0FCE28C0EB for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 07:41:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.394
X-Spam-Level: 
X-Spam-Status: No, score=-2.394 tagged_above=-999 required=5 tests=[AWL=0.205,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SbwGbafCDFhr for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 07:41:05 -0800 (PST)
Received: from smtp03.srv.cs.cmu.edu (SMTP03.SRV.CS.CMU.EDU [128.2.217.198]) by core3.amsl.com (Postfix) with ESMTP id 1FE8328C0E5 for <sasl@ietf.org>; Tue,  1 Dec 2009 07:41:05 -0800 (PST)
Received: from ATLANTIS.WV.CS.CMU.EDU (SIRIUS.FAC.CS.CMU.EDU [128.2.216.216]) (authenticated bits=0) by smtp03.srv.cs.cmu.edu (8.13.6/8.13.6) with ESMTP id nB1FesNb024104 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 1 Dec 2009 10:40:55 -0500 (EST)
Date: Tue, 01 Dec 2009 10:40:54 -0500
From: Jeffrey Hutzelman <jhutz@cmu.edu>
To: Nicolas Williams <Nicolas.Williams@sun.com>, sasl@ietf.org
Message-ID: <852347DAA076DA90C3EA6DD8@atlantis.pc.cs.cmu.edu>
In-Reply-To: <8658_1259627905_nB10cN0a009880_20091201002633.GC773@Sun.COM>
References: <8658_1259627905_nB10cN0a009880_20091201002633.GC773@Sun.COM>
X-Mailer: Mulberry/4.0.8 (Linux/x86)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Scanned-By: mimedefang-cmuscs on 128.2.217.198
Subject: Re: [sasl] RFC4752 (SASL/GSSAPI) interop problem
X-BeenThere: sasl@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SASL Working Group <sasl.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sasl>
List-Post: <mailto:sasl@ietf.org>
List-Help: <mailto:sasl-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Dec 2009 15:41:06 -0000

--On Monday, November 30, 2009 06:26:34 PM -0600 Nicolas Williams 
<Nicolas.Williams@sun.com> wrote:

> For example, Microsoft's Active Directory requires that clients send '6'
> when the server is configured to require "LDAP signing and sealing".  So
> does the Perl CPAN RFC4752 implementation.  Whereas Cyrus SASL and
> derivative implementations, for example, require '4'.  (GNU SASL doesn't
> support security layers, therefore it is not affected by this interop
> bug.)

So, you're saying implementations like Cyrus reject '6' as invalid?
That just seems bogus.



> Clients cannot tell which interpretation a server uses.  They can only
> know a priori or try first one way, then the other.

Which means that clients that want to work around this will have to provide 
some sort of knob to know which to try.


> No, I'm not interested in an update to RFC4752 -- SASL/GS2 should just
> replace it, but the WG should be aware of this issue.

And in the meantime, we can just all use '1' and TLS, which seems to be 
what ~everyone does anyway.

From chayes@afo.net  Tue Dec  1 07:52:56 2009
Return-Path: <chayes@afo.net>
X-Original-To: sasl@core3.amsl.com
Delivered-To: sasl@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1A3613A68F7 for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 07:52:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level: 
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IncJXqPlzuSu for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 07:52:55 -0800 (PST)
Received: from sendmail.afo.net (sendmail.afo.net [66.210.32.133]) by core3.amsl.com (Postfix) with ESMTP id CEFBE3A6870 for <sasl@ietf.org>; Tue,  1 Dec 2009 07:52:00 -0800 (PST)
Received: from afo0db9348c9e7 (wsip-72-215-138-71.pn.at.cox.net [72.215.138.71]) (authenticated bits=0) by sendmail.afo.net (8.14.3/8.14.3) with ESMTP id nB1FppWT021251 for <sasl@ietf.org>; Tue, 1 Dec 2009 09:51:52 -0600
From: "Cliff Hayes" <chayes@afo.net>
To: <sasl@ietf.org>
Date: Tue, 1 Dec 2009 09:51:52 -0600
Message-ID: <KOEFJBMPMHEEEPAEEEJMOECMEAAA.chayes@afo.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Importance: Normal
X-Scanned-By: MIMEDefang 2.67 on 66.210.32.133
Subject: [sasl] saslauthd stops working
X-BeenThere: sasl@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SASL Working Group <sasl.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sasl>
List-Post: <mailto:sasl@ietf.org>
List-Help: <mailto:sasl-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Dec 2009 15:52:56 -0000

Hello,

We have 3200 users using a sendmail/dovecot/saslauthd server.  I just
upgraded to new hardware and Fedora 11.  Since then saslauthd randomly stops
working.  I have tried auth modes of both pam and shadow and that has not
helped.  Currently using shadow.

This morning users were complaining they could not send mail.  Further
research revealed log entries like the following started at 17:48 and
continued on till morning for everyone until I did a service saslauthd
restart:

Nov 30 17:48:29 sendmail saslauthd[1646]: do_auth         : auth failure:
[user=sjcca1] [service=smtp] [realm=] [mech=shadow] [reason=Unknown]

I can find no log entries other than the above so nothing to go on.  The
only thing I can see is that 99% of users have no realm in the log entries.
Why a few do and most don't is a mystery to me.

I am using version 2.1.22 - I have another server which has 2.1.23 so I know
a new version is out there.
When I run yum update it does not report that a newer version of saslauthd
will be installed, so not sure how to get the newer version or if that will
help.

Any help will be appreciated.

Thanks,

Cliff


From dwhite@olp.net  Tue Dec  1 09:40:58 2009
Return-Path: <dwhite@olp.net>
X-Original-To: sasl@core3.amsl.com
Delivered-To: sasl@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9D3503A68E4 for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 09:40:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6t8O95skg7Ub for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 09:40:57 -0800 (PST)
Received: from pinky.olp.net (pinky-postini.olp.net [65.161.252.104]) by core3.amsl.com (Postfix) with ESMTP id E01553A68AB for <sasl@ietf.org>; Tue,  1 Dec 2009 09:40:57 -0800 (PST)
Received: from olp.net (vpn.olp.net [67.217.151.100]) by pinky.olp.net (Postfix) with ESMTP id 0801B292D5A; Tue,  1 Dec 2009 11:40:49 -0600 (CST)
Received: by olp.net (Postfix, from userid 1000) id 0B6A245A09E; Tue,  1 Dec 2009 11:40:49 -0600 (CST)
Date: Tue, 1 Dec 2009 11:40:49 -0600
From: Dan White <dwhite@olp.net>
To: Cliff Hayes <chayes@afo.net>
Message-ID: <20091201174048.GI4453@dan.olp.net>
References: <KOEFJBMPMHEEEPAEEEJMOECMEAAA.chayes@afo.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <KOEFJBMPMHEEEPAEEEJMOECMEAAA.chayes@afo.net>
X-OS: Linux zek 2.6.31-1-amd64 x86_64
User-Agent: Mutt/1.5.18 (2008-05-17)
Cc: cyrus-sasl@lists.andrew.cmu.edu
Subject: Re: [sasl] saslauthd stops working
X-BeenThere: sasl@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SASL Working Group <sasl.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sasl>
List-Post: <mailto:sasl@ietf.org>
List-Help: <mailto:sasl-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Dec 2009 17:40:58 -0000

On 01/12/09 09:51 -0600, Cliff Hayes wrote:
>We have 3200 users using a sendmail/dovecot/saslauthd server.  I just
>upgraded to new hardware and Fedora 11.  Since then saslauthd randomly stops
>working.  I have tried auth modes of both pam and shadow and that has not
>helped.  Currently using shadow.
>
>This morning users were complaining they could not send mail.  Further
>research revealed log entries like the following started at 17:48 and
>continued on till morning for everyone until I did a service saslauthd
>restart:
>
>Nov 30 17:48:29 sendmail saslauthd[1646]: do_auth         : auth failure:
>[user=sjcca1] [service=smtp] [realm=] [mech=shadow] [reason=Unknown]
>
>I can find no log entries other than the above so nothing to go on.  The
>only thing I can see is that 99% of users have no realm in the log entries.
>Why a few do and most don't is a mystery to me.
>
>I am using version 2.1.22 - I have another server which has 2.1.23 so I know
>a new version is out there.
>When I run yum update it does not report that a newer version of saslauthd
>will be installed, so not sure how to get the newer version or if that will
>help.

Cliff,

I'm moving this discussion to the cyrus-sasl list since it appears to be
the most appropriate location.

Can you provide your saslauthd configuration or startup options (e.g.
/etc/default/saslauthd)? Also include your /etc/saslauthd.conf if you have
one.

Can you provide your sasl related sendmail config?

The existence of a realm may depend on the client implementation.

By default, saslauthd runs with 5 threads. You can increase it with the -n
option.

Try using testsaslauthd to help troubleshoot when the problem is happening.

-- 
Dan White

From Nicolas.Williams@sun.com  Tue Dec  1 10:17:30 2009
Return-Path: <Nicolas.Williams@sun.com>
X-Original-To: sasl@core3.amsl.com
Delivered-To: sasl@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 99E343A6910 for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 10:17:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.741
X-Spam-Level: 
X-Spam-Status: No, score=-5.741 tagged_above=-999 required=5 tests=[AWL=0.305,  BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j9wxbWMndR5N for <sasl@core3.amsl.com>; Tue,  1 Dec 2009 10:17:29 -0800 (PST)
Received: from brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by core3.amsl.com (Postfix) with ESMTP id 4B69D3A6881 for <sasl@ietf.org>; Tue,  1 Dec 2009 10:17:22 -0800 (PST)
Received: from dm-central-01.central.sun.com ([129.147.62.4]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id nB1IHEYj013531 for <sasl@ietf.org>; Tue, 1 Dec 2009 18:17:14 GMT
Received: from binky.Central.Sun.COM (binky.Central.Sun.COM [129.153.128.104]) by dm-central-01.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL, v2.2) with ESMTP id nB1IHDZl012607 for <sasl@ietf.org>; Tue, 1 Dec 2009 11:17:13 -0700 (MST)
Received: from binky.Central.Sun.COM (localhost [127.0.0.1]) by binky.Central.Sun.COM (8.14.3+Sun/8.14.3) with ESMTP id nB1HvxTd007968; Tue, 1 Dec 2009 11:57:59 -0600 (CST)
Received: (from nw141292@localhost) by binky.Central.Sun.COM (8.14.3+Sun/8.14.3/Submit) id nB1HvxbQ007967;  Tue, 1 Dec 2009 11:57:59 -0600 (CST)
X-Authentication-Warning: binky.Central.Sun.COM: nw141292 set sender to Nicolas.Williams@sun.com using -f
Date: Tue, 1 Dec 2009 11:57:59 -0600
From: Nicolas Williams <Nicolas.Williams@sun.com>
To: Jeffrey Hutzelman <jhutz@cmu.edu>
Message-ID: <20091201175758.GF773@Sun.COM>
References: <8658_1259627905_nB10cN0a009880_20091201002633.GC773@Sun.COM> <852347DAA076DA90C3EA6DD8@atlantis.pc.cs.cmu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <852347DAA076DA90C3EA6DD8@atlantis.pc.cs.cmu.edu>
User-Agent: Mutt/1.5.7i
Cc: sasl@ietf.org
Subject: Re: [sasl] RFC4752 (SASL/GSSAPI) interop problem
X-BeenThere: sasl@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SASL Working Group <sasl.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sasl>
List-Post: <mailto:sasl@ietf.org>
List-Help: <mailto:sasl-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Dec 2009 18:17:30 -0000

On Tue, Dec 01, 2009 at 10:40:54AM -0500, Jeffrey Hutzelman wrote:
> --On Monday, November 30, 2009 06:26:34 PM -0600 Nicolas Williams 
> <Nicolas.Williams@sun.com> wrote:
> >For example, Microsoft's Active Directory requires that clients send '6'
> >when the server is configured to require "LDAP signing and sealing".  So
> >does the Perl CPAN RFC4752 implementation.  Whereas Cyrus SASL and
> >derivative implementations, for example, require '4'.  (GNU SASL doesn't
> >support security layers, therefore it is not affected by this interop
> >bug.)
> 
> So, you're saying implementations like Cyrus reject '6' as invalid?
> That just seems bogus.

Yes.  Think though: how could '6' be legal??  That commits the client
(and server) to setting conf_flag == FALSE and conf_flag == TRUE at the
same time.

Making the server accept 6 as equivalent to 4 is trivial.  It should be
done.

NOTE: I've sent e-mail to the Cyrus SASL list separately.

> >Clients cannot tell which interpretation a server uses.  They can only
> >know a priori or try first one way, then the other.
> 
> Which means that clients that want to work around this will have to provide 
> some sort of knob to know which to try.

Yup.  See the e-mail I've sent to the Cyrus SASL list.

> >No, I'm not interested in an update to RFC4752 -- SASL/GS2 should just
> >replace it, but the WG should be aware of this issue.
> 
> And in the meantime, we can just all use '1' and TLS, which seems to be 
> what ~everyone does anyway.

Yes.

Nico
-- 

From alexey.melnikov@isode.com  Sat Dec  5 11:05:47 2009
Return-Path: <alexey.melnikov@isode.com>
X-Original-To: sasl@core3.amsl.com
Delivered-To: sasl@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 199FC3A682B for <sasl@core3.amsl.com>; Sat,  5 Dec 2009 11:05:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.535
X-Spam-Level: 
X-Spam-Status: No, score=-2.535 tagged_above=-999 required=5 tests=[AWL=0.064,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D4s82LyKxBFm for <sasl@core3.amsl.com>; Sat,  5 Dec 2009 11:05:46 -0800 (PST)
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by core3.amsl.com (Postfix) with ESMTP id 96C483A67FA for <sasl@ietf.org>; Sat,  5 Dec 2009 11:05:45 -0800 (PST)
Received: from [92.40.5.164] (92.40.5.164.sub.mbb.three.co.uk [92.40.5.164])  by rufus.isode.com (submission channel) via TCP with ESMTPA  id <Sxqu9gA7xYFM@rufus.isode.com>; Sat, 5 Dec 2009 19:05:35 +0000
Message-ID: <4B1AAED8.4000104@isode.com>
Date: Sat, 05 Dec 2009 19:04:56 +0000
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Nicolas Williams <Nicolas.Williams@sun.com>
References: <20091201002633.GC773@Sun.COM>
In-Reply-To: <20091201002633.GC773@Sun.COM>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: sasl@ietf.org
Subject: Re: [sasl] RFC4752 (SASL/GSSAPI) interop problem
X-BeenThere: sasl@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SASL Working Group <sasl.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sasl>
List-Post: <mailto:sasl@ietf.org>
List-Help: <mailto:sasl-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sasl>, <mailto:sasl-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 05 Dec 2009 19:05:47 -0000

Nicolas Williams wrote:

>There is an interop problem between various implementations of RFC4752.
>
>To remind you, RFC4752 (SASL/GSSAPI) looks like:
>
>    <app-layer SASL mechanism negotiation>
>    C->S: <initial security context token for GSS mechanism>
>   [S->C: <reply security context token>]
>   [C->S: <reply security context token>]
>   [...]
>  [[C->S: <empty>]]
>    S->C: <wrap token containing a) a bitmask of supported security
>           layers, b) the server's max message size>
>    C->S: <wrap token containing a) the security layer requested by the
>           client, b) the client's max message size, c) requested
>	   authzid>
>    S->C: <app-layer outcome of authentication message>
>
>
>The interop problem relates to (a) in the C->S wrap token.  That item is
>a bitmask, with three bits defined:
>
>"
>          1 No security layer
>          2 Integrity protection.
>            Sender calls GSS_Wrap with conf_flag set to FALSE
>          4 Confidentiality protection.
>            Sender calls GSS_Wrap with conf_flag set to TRUE
>"
>
>Now, one group of implementors interprets this to mean that in order to
>require integrity _and_ confidentiality protection the client must set
>both, 2 and 4, while another group of implementors interprets this to
>mean that only 4 must be sent -- after all, the GSS-API requires that
>integrity protection be provided when confidentiality protection is
>requested, and anyways, it's not possible to set conf_flag to both,
>FALSE and TRUE.
>
>For example, Microsoft's Active Directory requires that clients send '6'
>when the server is configured to require "LDAP signing and sealing".  So
>does the Perl CPAN RFC4752 implementation.
>
Such implementations are broken. The server end specifies all modes it 
support (bitmask), the client must pick one of the modes (only 1 bit) 
and send it back.

>Whereas Cyrus SASL and derivative implementations, for example, require '4'.  (GNU SASL doesn't
>support security layers, therefore it is not affected by this interop
>bug.)
>  
>
