Re: [kitten] On SASL's authzid

Nico Williams <nico@cryptonector.com> Fri, 07 March 2014 16:37 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AD5E01A01E3 for <kitten@ietfa.amsl.com>; Fri, 7 Mar 2014 08:37:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.044
X-Spam-Level:
X-Spam-Status: No, score=-1.044 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, IP_NOT_FRIENDLY=0.334] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CdxcY3fpnP6b for <kitten@ietfa.amsl.com>; Fri, 7 Mar 2014 08:37:19 -0800 (PST)
Received: from homiemail-a103.g.dreamhost.com (agjbgdcfdbea.dreamhost.com [69.163.253.140]) by ietfa.amsl.com (Postfix) with ESMTP id 6020D1A0104 for <kitten@ietf.org>; Fri, 7 Mar 2014 08:37:19 -0800 (PST)
Received: from homiemail-a103.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a103.g.dreamhost.com (Postfix) with ESMTP id 3D0C62005D109 for <kitten@ietf.org>; Fri, 7 Mar 2014 08:37:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=ztjQuI4FBlo32iSHjHBZ VAeQN3A=; b=JX+00ZnjSSuXU1KP2UmFAJ0LDwvTlwsG3QCuacwWIi+SIv6Y6UYU 43UC1vLtJehFezcQ0ottrde5URV5IbIJrr1G1yXFHW3kV2fW+zL9Y8wcmwQlPWxQ USVx51DE+VmwC9Xm35FKshX9ONiBqSo5sqakaPW5slg7SYJ9eiOxxZg=
Received: from mail-we0-f172.google.com (mail-we0-f172.google.com [74.125.82.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a103.g.dreamhost.com (Postfix) with ESMTPSA id E4D652005D106 for <kitten@ietf.org>; Fri, 7 Mar 2014 08:37:14 -0800 (PST)
Received: by mail-we0-f172.google.com with SMTP id t61so5290230wes.31 for <kitten@ietf.org>; Fri, 07 Mar 2014 08:37:13 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RlqJRkMZ+2WoxCx7Di8By+61AOAK+eW+4C5d6H2u6kI=; b=GJqYRacrPHVL76TnBF9xOU1QqoCfBRSAwBxS5C2hdVUZTYn5aT2UkHkiQ9aAQInkmQ u8FlJ0/E2ZmYe8CnhY3JA6HOST9Y/bMnuaEyiZQx2XEkbsb39RA4AGMqJX9U1im0yzXw j4+Cklc66Y2F6XL0+O+q2pzSGWX2KlitE0gtrMuU64+VU92F8lA74Iskvj09+tVMRlK+ cTONUedoAJEaPH7N1JAQzTOakGX99RQnAuagR7BdXhoGZe8SwKbRS4L4x1LP5M8MqzvB 3UbS0gQuV4LBY2gkcuTDh3Xw56cvAIcU1HMXEXKHvhy7DM7p1sgc8XsHlZFvpAZFJ+xg Bu2A==
MIME-Version: 1.0
X-Received: by 10.195.13.103 with SMTP id ex7mr20446175wjd.3.1394210233884; Fri, 07 Mar 2014 08:37:13 -0800 (PST)
Received: by 10.216.199.6 with HTTP; Fri, 7 Mar 2014 08:37:13 -0800 (PST)
In-Reply-To: <4E333EB6-3D42-4DD1-A7CF-15F82922CFE9@isode.com>
References: <CAK3OfOjTUru3UE+0MFXpYMpZWbWkFyEuitOAbDMgMaYxcpeTBw@mail.gmail.com> <1394176583.51714.YahooMailNeo@web142802.mail.bf1.yahoo.com> <4E333EB6-3D42-4DD1-A7CF-15F82922CFE9@isode.com>
Date: Fri, 07 Mar 2014 10:37:13 -0600
Message-ID: <CAK3OfOh1wxs84G1_HayWEc_oZjD_4E-X=Re6Ek0aoW0PfVThsQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/kitten/scijrSaMPKM02EjLr1djyd0WXcE
Cc: "kitten@ietf.org" <kitten@ietf.org>
Subject: Re: [kitten] On SASL's authzid
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Common Authentication Technologies - Next Generation <kitten.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/kitten>, <mailto:kitten-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/kitten/>
List-Post: <mailto:kitten@ietf.org>
List-Help: <mailto:kitten-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/kitten>, <mailto:kitten-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Mar 2014 16:37:20 -0000

On Fri, Mar 7, 2014 at 8:41 AM, Alexey Melnikov
<alexey.melnikov@isode.com> wrote:
> > Q: What is it?  It is:
>>
> > My answer, as I understand it the authzid is:
> >
> > - an advisory,
>
> This is not quite correct. Authentication engine needs to obey the specified
> value and can't just ignore it. Specific algorithm how an authenticated user
> is  authorised to act as an authzid is implementation and protocol specific.

The authorization check could be synthetic though.  The authzid value
is only transported by the mechanism.  The app decides if the authcid
is permitted, and this decision can be very synthetic: use the authzid
to find something, then decide if the user has access.  For example,
in LDAP the authzid might be a DN, but as you know the rules for
matching some object by DN are not trivial, so the user may not
provide a canonical DN and everything might still work.  Indeed, the
server is free to decide that the access the user would have had w/o
an authzid is the same with any authzid -- nothing in RFC4422 forces
it to never so decide.

But maybe this isin't important.  The question I just asked Chris is
more important: is it OK for new mechanisms to impose new UIs/user
interactions on existing applications?

Nico
--