Re: [kitten] Checking the transited list of a kerberos ticket in a transitive cross-realm trust situation...

Simo Sorce <simo@redhat.com> Thu, 24 August 2017 23:10 UTC

Return-Path: <simo@redhat.com>
X-Original-To: kitten@ietfa.amsl.com
Delivered-To: kitten@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3E9401329C5 for <kitten@ietfa.amsl.com>; Thu, 24 Aug 2017 16:10:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.901
X-Spam-Level:
X-Spam-Status: No, score=-6.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 1sEMZ8j1bQ5O for <kitten@ietfa.amsl.com>; Thu, 24 Aug 2017 16:10:22 -0700 (PDT)
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 60B3513219A for <kitten@ietf.org>; Thu, 24 Aug 2017 16:10:20 -0700 (PDT)
Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 70ED2C058EC4; Thu, 24 Aug 2017 23:10:19 +0000 (UTC)
DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 70ED2C058EC4
Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=simo@redhat.com
Received: from ovpn-117-60.phx2.redhat.com (ovpn-117-60.phx2.redhat.com [10.3.117.60]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D30F039C1; Thu, 24 Aug 2017 23:10:18 +0000 (UTC)
Message-ID: <1503616217.3428.33.camel@redhat.com>
From: Simo Sorce <simo@redhat.com>
To: Stefan Metzmacher <metze@samba.org>, kitten@ietf.org, Viktor Dukhovni <viktor1dane@dukhovni.org>, Samba Technical <samba-technical@lists.samba.org>
Date: Thu, 24 Aug 2017 19:10:17 -0400
In-Reply-To: <8f68cfb0-2d6b-d86f-4ff0-a9282aa0bf55@samba.org>
References: <f33d5f68-1fdc-c1bc-c702-70b054880bb4@samba.org> <649fa812-aacf-80b6-1976-a719eca60fc2@mit.edu> <33c431f5-c36b-c321-de3f-65977d8aa898@samba.org> <007c29e8-02b9-4f48-f67e-881cb0985d64@mit.edu> <69d80d24-d461-1652-3cfb-e55d90d31fbf@samba.org> <ec067a72-313e-1878-33a0-a3259d2979d5@mit.edu> <1503578184.3428.19.camel@redhat.com> <db882372-aa1d-e58e-4c94-a268539bd2ee@samba.org> <1503596189.3428.26.camel@redhat.com> <F363B51E-FDF7-4C91-9ABD-B623B5CE97BC@dukhovni.org> <8f68cfb0-2d6b-d86f-4ff0-a9282aa0bf55@samba.org>
Organization: Red Hat, Inc.
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 24 Aug 2017 23:10:19 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/YybFlft8kIDa-7NKcjRVXx-kOwo>
Subject: Re: [kitten] Checking the transited list of a kerberos ticket in a transitive cross-realm trust situation...
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Thu, 24 Aug 2017 23:10:24 -0000

On Fri, 2017-08-25 at 00:29 +0200, Stefan Metzmacher wrote:
> Am 24.08.2017 um 22:47 schrieb Viktor Dukhovni:
> > 
> > [ Just kitten, as either not subcribed or subscribed with a
> > different
> >   address to some of the other lists. ]
> > 
> > > On Aug 24, 2017, at 1:36 PM, Simo Sorce <simo@redhat.com> wrote:
> > > 
> > > > We should enforce a PAC always to be present, as we don't
> > > > support
> > > > trusted domains with LSA_TRUST_TYPE_MIT anyway.
> > > 
> > > In samba, yes, but that option can be used in other clients that
> > > can
> > > connect to multiple types of servers so in case they do not get a
> > > PAC
> > > the flag should be respected.
> > 
> > Does the Kerberos library know whether whether the application is
> > going
> > to look at PACs and SIDs or just use the client principal name?  I
> > am
> > guessing it does not.  Thus in Samba, one might need a dedicated
> > krb5.conf configuration file that disables the transit
> > check.  Other
> > applications should still apply transit check even if a PAC happens
> > to be present, as AFAIK it may well remain unused.
> 
> My idea was that Samba would use
> gss_set_cred_option(GSS_KRB5_CRED_NO_TRANSIT_CHECK_X) to indicate
> the the transited list should not be checked.

It's my idea as well, but if you are operating in a mixed environment
and the ticket happens to come without a PAC the transited list should
probably be checked instead. A service *may* decide to bail out if no
PAC is present but it shouldn't have to.

Simo.

-- 
Simo Sorce
Sr. Principal Software Engineer
Red Hat, Inc