[2015] in Kerberos-V5-bugs
Followup on alpha and postdated kinit
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Mon Jun 17 20:08:24 1996
From: epeisach@MIT.EDU
Date: Mon, 17 Jun 1996 20:08:15 -0400
To: krb5-bugs@MIT.EDU
"kinit -s +5m" works...
Dollars to Donuts, this might be krb5_string_to_timestamp losage as
krb5_string_to_deltat clearly works...
Just confirmed that krb5_string_to_timestamp is the problem...
"kinit -s 6:00" tries to give me tickets for Dec 31, 6am, 1905!!!
So the problem is in strptime.... From the man page...
The strptime() function modifies only the fields in
the tm structure that have corresponding conversion specifications in the
format.
Clearly, the struture needs to be filled in before calling strptime -
probably vial localtime for each of the optional parsing.... (as the
resultant tm is unpredictable if the parsing failed)...
ezra