Re: [kitten] One question about Kerberos Protocol in the RFC 4120
bc a <mrcatcrack@gmail.com> Thu, 19 August 2021 03:11 UTC
Return-Path: <mrcatcrack@gmail.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 A120F3A109A
for <kitten@ietfa.amsl.com>; Wed, 18 Aug 2021 20:11:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
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 l2Ig-NqWKuWJ for <kitten@ietfa.amsl.com>;
Wed, 18 Aug 2021 20:11:06 -0700 (PDT)
Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com
[IPv6:2607:f8b0:4864:20::c2b])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id 2569D3A1097
for <kitten@ietf.org>; Wed, 18 Aug 2021 20:11:06 -0700 (PDT)
Received: by mail-oo1-xc2b.google.com with SMTP id
l12-20020a4a94cc0000b02902618ad2ea55so1389755ooi.4
for <kitten@ietf.org>; Wed, 18 Aug 2021 20:11:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=wjOH1RHX6v2ibqSs4Kgo7KG1jByRDIW6FnTRQcLqUZM=;
b=SOqd7EL4nnyU5S65oRc5VGO3YHZhQszdVhEg6MRsylKOiVVzaYchurz50g0hu7S0d8
xtXHXfFg1p/CN5xdD74U7zc0fYAervEObnIj9okCKmpWA7ZlFM6uRa4+y2vJXKkWXRbZ
MVMB10p39UoiiwzN307jZ7qsXSYqU3k4qRmFMt74wgBh/Mg2TiAhU52de2JvuLLEg+Ec
1AQxpY2ZP1R4W/yMFL1xofh4OmA6PblzvoGNkTnJ8qUVfnzsk3wqaw2kLC9LQU5hAaH2
yfH8GDs9caqPyr1yKZCcUJ3kllIPYSq21bJOtOT35BdC/FDUsXgonuSo42YcBt8CsGR3
ZW2A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=wjOH1RHX6v2ibqSs4Kgo7KG1jByRDIW6FnTRQcLqUZM=;
b=Pm9AQnSmgGZInEsQaY3zYf5RigNCgIs8t3wbWbzaDBEWbQLBbveFiJmxWsdJkzmxPq
eoTG0u0h3IrNwOT81qeBS0h76+445uUSGAFUt7Z42zjerx9r/Pl33bpM/o+xnAkCmJo+
NowJHHLN7z8DpN8SR7LpgQDF1YGTsp4VAzoUGRR4QhMqOs5F3+cVZ/3D5kFvo8VLgg1r
oDbS9nEWOxW1wR4gWkFFg4r4mrb/ULUW7eb8BS5GyFSj2DL+syMc/zsd6o67aq8mMTl4
eyTrzFClEfAnID6U68AnQrGkK10QZfmD2y6XOIz23AQuGvwqmtM7AZ1XlGksELfvK0m9
abaw==
X-Gm-Message-State: AOAM531roHa6vaZUt6dO4HgA1VwJsGQbm1+n5Vnf1MzW6aI0GBsaZDVr
Tf75+8rFsW61WjFSKYoC2+Mp8PCAS5ZK6v0HgKs=
X-Google-Smtp-Source: ABdhPJz8ptOvHB/ClIyDez3xBa4Qom4iPUyZ1EFmxY/1vPEigTuUzbn6P3gC83Foa+FjugcaLZ/d8/1CgLiRoD/C/+I=
X-Received: by 2002:a4a:3e58:: with SMTP id t85mr9461724oot.81.1629342664089;
Wed, 18 Aug 2021 20:11:04 -0700 (PDT)
MIME-Version: 1.0
References: <CAD8oZZEofs7pYoiVJThme1iOrUZ5rmqi8L9ur-wHirr6QJTt0g@mail.gmail.com>
<e196987b-225b-cf39-b9c8-b1b47fe8daa1@mit.edu>
<2a1053eb77e1a74efff7b25288de9cb4.squirrel@mail2.ihtfp.org>
In-Reply-To: <2a1053eb77e1a74efff7b25288de9cb4.squirrel@mail2.ihtfp.org>
From: bc a <mrcatcrack@gmail.com>
Date: Thu, 19 Aug 2021 11:10:53 +0800
Message-ID: <CAD8oZZFtdPUfkkf-HM_BWveC5RPK9kWSt8y5FMoQmkUjJ+Pr0g@mail.gmail.com>
To: Derek Atkins <derek@ihtfp.com>
Cc: Greg Hudson <ghudson@mit.edu>, kitten@ietf.org
Content-Type: multipart/alternative; boundary="000000000000b5e2fe05c9e0e6e6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/kitten/qPTZiEh9xvZlOleTW5pCjj0r9FU>
Subject: Re: [kitten] One question about Kerberos Protocol in the RFC 4120
X-BeenThere: kitten@ietf.org
X-Mailman-Version: 2.1.29
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, 19 Aug 2021 03:11:12 -0000
Thanks a lot for your clarification. I'll check the MIT krb5 KDC implementations later.Thanks again!😄😄 Derek Atkins <derek@ihtfp.com> 于2021年8月19日周四 上午4:22写道: > Hi, > > On Wed, August 18, 2021 4:01 pm, Greg Hudson wrote: > > On 8/18/21 11:53 AM, bc a wrote: > >> So I want to know whether it can be considered that the authentication > >> server creates two "keys" in the AS-REP phase, one in the "enc-part" of > >> the "ticket" field, > >> and the other one is in the separate "enc-part" , And whether these two > >> "key" values are the same? > > > > The two key values are the same. For an AP exchange to work, the ticket > > session key must be available to both the client and the application > > service. The key field in the EncKDCRepPart is visible to the client, > > while the key field in the EncTicketPart is visible to the application > > service. > > > > I see that Derek gave the opposite answer. > > I didn't *quite* give the opposite answer. Every session key is unique. > But you are correct that I was unclear on the fact that the KDC has to > transmit the same session key to the user and the service. > > > You can check the Heimdal or > > MIT krb5 KDC implementations to see that the same key value is used in > > both places. In MIT krb5, the relevant lines are in > src/kdc/do_tgs_req.c: > > > > enc_tkt_reply.session = &session_key; > > [...] > > reply_encpart.session = &session_key; > > > > and similarly in do_as_req.c. > > -derek > > > _______________________________________________ > > Kitten mailing list > > Kitten@ietf.org > > https://www.ietf.org/mailman/listinfo/kitten > > > > > -- > Derek Atkins 617-623-3745 > derek@ihtfp.com www.ihtfp.com > Computer and Internet Security Consultant > >
- [kitten] One question about Kerberos Protocol in … bc a
- Re: [kitten] One question about Kerberos Protocol… Derek Atkins
- Re: [kitten] One question about Kerberos Protocol… Greg Hudson
- Re: [kitten] One question about Kerberos Protocol… Derek Atkins
- Re: [kitten] One question about Kerberos Protocol… bc a