]> git.ipfire.org Git - thirdparty/krb5.git/commit
Change krb5_get_credentials() endtime behavior 1354/head
authorGreg Hudson <ghudson@mit.edu>
Thu, 27 Jun 2024 11:25:21 +0000 (07:25 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 2 Jul 2024 01:17:34 +0000 (21:17 -0400)
commite68890329f8ab766f9b746351b5c7d2d18d8dd48
tree22c912f1191eb2e105c9e25d2f85e7b6de3378e7
parent4c0838bb4c232866b95c9f2f72a55bf77cfc1308
Change krb5_get_credentials() endtime behavior

Historically, krb5_get_credentials() uses in_creds->times.endtime both
as the TGS request endtime and as a cache lookup criterion.  These
uses are in conflict; setting a TGS request endtime can only serve to
limit the maximum lifetime of the issued ticket, while a cache lookup
endtime restricts the minimum lifetime of an acceptable cached ticket.
The likely outcome is to never use a cached ticket, leading to poor
performance as we add an entry to the cache for each request.

Change to the Heimdal behavior of using in_creds->times.endtime only
as the TGS request endtime.

ticket: 9132 (new)
src/include/krb5/krb5.hin
src/lib/krb5/krb/get_creds.c