[16380] in Athena Bugs
Re: Postdated ticket problems
daemon@ATHENA.MIT.EDU (Robert A Basch)
Fri Oct 2 22:39:29 1998
Date: Fri, 2 Oct 1998 22:39:26 -0400
From: Robert A Basch <rbasch@MIT.EDU>
To: Robert A Basch <rbasch@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: "[16379] in Athena Bugs"
> On both Solaris and IRIX, though, strptime() is zeroing the rest of
> the tm struct, so that the subsequent mktime() gives a ridiculous
> result.
Actually, on Solaris, mktime() fails in this case, returning -1.
krb5_string_to_timestamp() doesn't check for mktime() failing, and
passes back the -1; kinit, in turn, is expecting a 0 result to
indicate failure, so uses the -1 as the start time value. This
apparently triggers the "Cannot contact any KDC" error.
Bob