Omit start time in common AS requests
authorGreg Hudson <ghudson@mit.edu>
Fri, 11 May 2012 18:07:30 +0000 (18:07 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 11 May 2012 18:07:30 +0000 (18:07 +0000)
commit39629e9df44ce8c4ad72fde951390acc6864407d
tree68f29efeaa036fcb600a89353d018edfba8d76a3
parent70e46d97b6907da651069d1c0d74163b9edae5ea
Omit start time in common AS requests

MIT and Heimdal KDCs ignore the start time for non-postdated ticket
requests, but AD yields an error if the start time is in the KDC's
future, defeating the kdc_timesync option.  Omit the start time if the
caller did not specify a start time offset.

This change reenables the client check for too much clock skew in the
KDC reply in the non-timesync configuration.  That check had been
unintentionally suppressed since the introduction of the
get_init_creds interfaces.  Adjust the t_skew test script to expect
the new error behavior.

Code changes from stefw@gnome.org with slight modifications.

ticket: 7130

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25864 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/krb/get_in_tkt.c
src/tests/t_skew.py