From 698a84b9584616d8b9b3cec39a97f55d2b0eeae4 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 12 Dec 2019 00:54:43 +0100 Subject: [PATCH] source4/heimdal/lib/krb5/get_cred.c krb5_tkt_creds_step TODO: kdc_flags.b.renew = 1 --- source4/heimdal/lib/krb5/get_cred.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source4/heimdal/lib/krb5/get_cred.c b/source4/heimdal/lib/krb5/get_cred.c index f9aa0a32c287..a50ec290898e 100644 --- a/source4/heimdal/lib/krb5/get_cred.c +++ b/source4/heimdal/lib/krb5/get_cred.c @@ -2080,6 +2080,9 @@ krb5_tkt_creds_step(krb5_context context, ctx->ok_as_delegate = 1; // TODO: on by default? ctx->options |= KRB5_GC_CANONICALIZE; //TODO: why forced here??? + //kdc_flags.b.renewable = 1; + //ctx->options |= KRB5_GC_NO_STORE + ticket = &ctx->tgts[ctx->num_tgts]; if (ctx->in_creds.session.keytype) { @@ -2387,6 +2390,11 @@ get_next_ticket: if (ctx->options & KRB5_GC_FORWARDABLE) { kdc_flags.b.forwardable = 1; } + if (ctx->options & 0 /* TODO */) { + kdc_flags.b.renew = 1; + kdc_flags.b.renewable = 1; + kdc_flags.b.renewable_ok = 1; + } if (ctx->options & KRB5_GC_NO_TRANSIT_CHECK) { kdc_flags.b.disable_transited_check = 1; } -- 2.34.1