[1611] in Kerberos_V5_Development
Re: modprinc -expire broken?
daemon@ATHENA.MIT.EDU (Barry Jaspan)
Mon Aug 19 11:50:20 1996
Date: Mon, 19 Aug 1996 11:50:15 -0400
From: "Barry Jaspan" <bjaspan@MIT.EDU>
To: hartmans@MIT.EDU
Cc: krbcore@MIT.EDU
In-Reply-To: <199608190413.AAA12134@tertius.mit.edu> (message from Sam Hartman
on Mon, 19 Aug 1996 00:13:14 -0400)
In my reading of getdate.y, any of the following should work,
right?
modprinc -expire 1/1/2000 zephyr/zephyr
modprinc -expire "1/1/2000 00:00:00" zephyr/zephyr
Well, I just flipped through the code somewhat, and found
if (Year < EPOCH || Year > 1999
|| Month < 1 || Month > 12
|| Day < 1 || Day > DaysInMonth[(int)--Month])
return -1;
which looks pretty much like it will not accept explicit years greater
than 1999. I'm surprised I never noticed this before, as I thought I
tested it.
Perhaps this can be fixed, or perhaps we should just junk getdate.y.
Barry