Fix never valid error condition in KDC
commit2acf60e58f4450380eeacfdfa6d3f7341e4394b0
authorNicolas Williams <nico@cryptonector.com>
Tue, 26 Nov 2013 22:51:45 +0000 (26 16:51 -0600)
committerNicolas Williams <nico@cryptonector.com>
Wed, 27 Nov 2013 01:51:02 +0000 (26 19:51 -0600)
tree33e37e55341f3ae3af30e49b94e5b5e32c1687cf
parentda38be62611d1e6f120f9e6e8e1fd11abd9760a3
Fix never valid error condition in KDC

The TGS was incorrectly using authtime to compute renew_till for new
tickets, which was in turn leading to endtime potentially being equal to
starttime, which caused the TGS to return KRB5KDC_ERR_NEVER_VALID.

This happens when the TGT renewal lifetime is longer than the max renew
lifetime of any other services, after that much time (target services'
max renew life) passes.  The TGT is still good but TGS-REQs fail.
kdc/krb5tgs.c