How to Change the Kerberos Default Ticket Lifetime
Turns out that I also had to change the "maxlife" parameter for the service principal as well. Specifically, I had to do "modprinc -maxlife 14hours krbtgt/[REALM_in_CAPS]" to get the lifetime increased to 14 hours.
To sum up, the ticket lifetime is the minimum of the following values:
max_life
inkdc.conf
on the KDC servers.ticket_lifetime
inkrb5.conf
on the client machine.maxlife for the user principal.
maxlife for the service principal "krbtgt/[REALM_in_CAPS]" => What I had missed!
-
requested lifetime in the ticket request. For example:
k5start -l 14h
kinit -l 14h
maxlife
for the AFS service principal "afs/[realm_in_lower_case]", if you want to increase the lifetime of your AFS token.
Mystery solved!