I am using MIT kerberos 5 on my machine to authenticate a user. This grants the ticket to the user. I want to reset the maxlife of a ticket for more than 24 hrs. By default the max life of a kerberos ticket is 24 hrs. I have tried the following steps:
- Changed the
/var/kerberos/krb5kdc/kdc.conf
I did not find max-life so I setmax_life = 168h 0m 0s
- Changed the
/etc/krb5.conf
Changed the default ticket_lifetime from 24 hrs toticket_lifetime = 168h 0m 0s
- By default the principal lifetime is Maximum ticket life: 1 days 00:00:00
I changed it to 168h with the following command
kadmin.local: modify_principal -maxlife 168hours testkerb
It changed to - Maximum ticket life: 7 days 00:00:00
- Then I did a
kinit
for the user and check withklist
.
The klist
result still shows the ticket life as 24 hrs. Output of klist
is as follows:
Valid starting Expires Service principal
**11/19/14 12:51:59 11/20/14 12:51:59 krbtgt/EXAMPLE.COM@EXAMPLE.COM**
renew until 11/19/14 12:51:59
If someone knows please tell me where am I doing the mistake. Less than 24 hrs I am able to change the ticket life but more than 24 hrs it does not reflect in the klist
. I would appreciate the help.