kcm: Allow disabling automatic TGT renewal
Add --no-automatic-renewal option to disable automatic TGT renewal. Renewal can also be disabled by setting automatic_renewal to false in the [kcm] section of krb5.conf.
This commit is contained in:

committed by
Nico Williams

parent
6932819419
commit
9a47ec2b02
@@ -220,7 +220,7 @@ kcm_ccache_make_default_event(krb5_context context,
|
||||
event->fire_time = time(NULL); /* right away */
|
||||
event->action = KCM_EVENT_ACQUIRE_CREDS;
|
||||
} else if (is_primary_credential_p(context, ccache, newcred)) {
|
||||
if (newcred->flags.b.renewable) {
|
||||
if (automatic_renewal && newcred->flags.b.renewable) {
|
||||
event->action = KCM_EVENT_RENEW_CREDS;
|
||||
ccache->flags |= KCM_FLAGS_RENEWABLE;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user