]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix renewable ticket lifetimes
authorGreg Hudson <ghudson@mit.edu>
Tue, 17 Mar 2015 18:07:38 +0000 (14:07 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 18 Mar 2015 15:54:02 +0000 (11:54 -0400)
commit3d9de684ea933c4887a7aebabc71287cbf5a3f3c
tree362cb74ae3e0f49f3a0bebd425852317a3cd5501
parente321a9d23c4475ba105a6e892624a65940e7aed2
Fix renewable ticket lifetimes

Commit b0661f9176f5eb2644ba459e1b1e87d3dd502174 removed the starttime
hack in the EncTicketPart decoder.  Take this into account when
computing the old lifetime of a ticket we are renewing.  Without this
fix, we compute an old lifetime equal to the ticket end time, add that
to the current KDC time, and issue a ticket with a negative end time
due to wraparound.  Add a simple test to t_renew.py to detect this by
making sure that a renewed ticket is usable.

This bug appeared only on master and not as part of any release, so
there is no associated ticket.
src/kdc/do_tgs_req.c
src/tests/t_renew.py