lib/krb5_wrap: implement krb5_cc_get_lifetime for MIT Kerberos
commit1feb31246d00cdadf7624925a324f7f591c26b82
authorAlexander Bokovoy <ab@samba.org>
Wed, 9 May 2012 21:00:03 +0000 (10 00:00 +0300)
committerAlexander Bokovoy <ab@samba.org>
Wed, 23 May 2012 14:51:49 +0000 (23 17:51 +0300)
treefa8faeb440dc5da00ba62a97adf9ae49f5e10e19
parentad945bc68f6b1e73a47bc0a33b35fcbf182f8137
lib/krb5_wrap: implement krb5_cc_get_lifetime for MIT Kerberos

In case krb5_cc_get_lifetime is not available, iterate over
existing tickets in the keytab, find the one marked as TKT_FLAG_INITIAL,
and use its lifetime. This is how it is implemented in Heimdal and
how it was suggested to be done by MIT Kerberos developers.
lib/krb5_wrap/krb5_samba.c