-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TGT renewal doesn't work when using Krb5TicketCache #285
Comments
Fixed with #286. An updated nuget package will be available within a few minutes. Please verify when you get a chance. :) |
So now I'm getting this after a while....
Here's where it's called from. I know explicit refresh like I'm doing here should technically not be needed anymore, but it should still work shouldn't it? Code is running on 4.5.155 |
Your logic isn't quite right. The cache as you're querying it will return any ticket expired or not. As such you can absolutely have a TGT in the cache that is past its expiration, but before it's renewtill date. If you're going to be doing something like that then you need to check |
But it shouldn't matter as your lib has a background timer thread that is
supposed to keep ticket alive regardless of this call. The fact that it
expired means that logic wasn't keeping tgt alive
…On Thu., Feb. 24, 2022, 2:53 a.m. Steve Syfuhs, ***@***.***> wrote:
Your logic isn't quite right. The cache as you're querying it will return
any ticket expired or not. As such you can absolutely have a TGT in the
cache that is past its expiration, but before it's renewtill date. If
you're going to be doing something like that then you need to check tgt.EndTime
< DateTimeOffset.UtcNow.
—
Reply to this email directly, view it on GitHub
<#285 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAINFWAO4XVX2G3D2ANZCGLU4XPV3ANCNFSM5NM7OTUQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Describe the bug
KerberosClient has a feature to refresh expiring TGTs, but this seems to work only for
MemoryTicketCache
. When usingKrb5TicketCache
TGT is not getting refreshed.To Reproduce
Switch cache to
Krb5TicketCache
Expected behavior
TGT gets refreshed regardless of ticket cache being used
The text was updated successfully, but these errors were encountered: