[16706] in Kerberos-V5-bugs
[krbdev.mit.edu #8978] git commit
daemon@ATHENA.MIT.EDU (Greg Hudson via RT)
Thu Jan 28 12:47:34 2021
From: "Greg Hudson via RT" <rt-comment@krbdev.mit.edu>
In-Reply-To:
Message-ID: <rt-4.4.4-61850-1611856020-1335.8978-4-0@mit.edu>
To: "AdminCc of krbdev.mit.edu Ticket #8978":;
Date: Thu, 28 Jan 2021 12:47:00 -0500
MIME-Version: 1.0
Reply-To: rt-comment@krbdev.mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krb5-bugs-bounces@mit.edu
Thu Jan 28 12:47:00 2021: Request 8978 was acted upon.
Transaction: Ticket created by ghudson@mit.edu
Queue: krb5
Subject: git commit
Owner: ghudson@mit.edu
Requestors:
Status: new
Ticket <URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8978 >
Support host-based GSS initiator names
When checking if we can get initial credentials in the GSS krb5 mech,
use krb5_kt_have_match() to support fallback iteration. When scanning
the ccache or getting initial credentials, rewrite cred->name->princ
to the canonical client name. When a name check is necessary (such as
when the caller specifies both a name and ccache), use a new internal
API k5_sname_compare() to support fallback iteration. Add fallback
iteration to krb5_cc_cache_match() to allow host-based names to be
canonicalized against the cache collection.
Create and store the matching principal for acceptor names in
acquire_accept_cred() so that it isn't affected by changes in
cred->name->princ during acquire_init_cred().
https://github.com/krb5/krb5/commit/c374ab40dd059a5938ffc0440d87457ac5da3a46
Author: Greg Hudson <ghudson@mit.edu>
Commit: c374ab40dd059a5938ffc0440d87457ac5da3a46
Branch: master
src/include/k5-int.h | 9 +++
src/include/k5-trace.h | 3 +
src/lib/gssapi/krb5/accept_sec_context.c | 15 +----
src/lib/gssapi/krb5/acquire_cred.c | 89 +++++++++++++++++------------
src/lib/gssapi/krb5/gssapiP_krb5.h | 1 +
src/lib/gssapi/krb5/rel_cred.c | 1 +
src/lib/krb5/ccache/cccursor.c | 57 +++++++++++++++----
src/lib/krb5/libkrb5.exports | 1 +
src/lib/krb5/os/sn2princ.c | 23 +++++++-
src/lib/krb5_32.def | 1 +
src/tests/gssapi/t_client_keytab.py | 44 +++++++++++++++
src/tests/gssapi/t_credstore.py | 32 +++++++++++
12 files changed, 214 insertions(+), 62 deletions(-)
_______________________________________________
krb5-bugs mailing list
krb5-bugs@mit.edu
https://mailman.mit.edu/mailman/listinfo/krb5-bugs