Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Date format and mailing list question

38 views
Skip to first unread message

Christopher Hogan

unread,
Nov 5, 2011, 6:54:37 PM11/5/11
to kerb...@mit.edu
I recently wanted to add a year to the password expiration date of a
principle. However, I can not find a valid reference for how this date
should be formated.

I did read the Date Format section of the Administrator's Guide.
However, none of the examples work. For example:
kadmin: modify_principal -pwexpire "next year" principal
Produces:
Invalid date specification "next year".
kadmin: modify_principal -pwexpire "11/31/2012 10:00:07 MST" principal
Produces:
Invalid date specification "11/31/2012 10:00:07 MST".

This tells me that the documentation is wrong, there is a bug in
Kerberos, or the Date Format section does not apply to this command.

Can someone tell me what the correct date format is for this command?
Should I file a bug report to get the documentation, or command
corrected?

On a different matter, is there a searchable version of this mailing
list? I found the archives at:
http://mailman.mit.edu/pipermail/kerberos/ However, I could not find a
way to search it other than parsing each thread manually.

Thank you for you time and help!
Christopher Hogan

Greg Hudson

unread,
Nov 6, 2011, 12:18:37 AM11/6/11
to Christopher Hogan, kerb...@mit.edu
On 11/05/2011 06:54 PM, Christopher Hogan wrote:
> I did read the Date Format section of the Administrator's Guide.
> However, none of the examples work.

I tried all of the examples with current code and two of them fail, but
the rest of them work.

The failure is happening because there is a heretofore unknown bug in
the handling of relative times in month or year units which causes "next
year" and "1 month" to fail some of the time (depends on the value of
stack garbage). Also, the handling of "next" is pretty much wrong
unless followed by a weekday--it's synonymous with "2", so "next year"
gives you the current time plus two years, if it doesn't fail.

"11/31/2012 10:00:07 MST" doesn't work because November only has thirty
days. The most similar example in the admin guide is "3/31/1992
10:00:07 PST" which does work.

> On a different matter, is there a searchable version of this mailing
> list? I found the archives at:
> http://mailman.mit.edu/pipermail/kerberos/ However, I could not find a
> way to search it other than parsing each thread manually.

What I usually do is download the complete raw archive and search that
in a text editor, since it's not that big. An alternative is to google
for "site:mailman.mit.edu/pipermail/kerberos searchterm".

Christopher Hogan

unread,
Nov 6, 2011, 3:00:12 PM11/6/11
to Greg Hudson, kerb...@mit.edu
> "11/31/2012 10:00:07 MST" doesn't work because November only has thirty
> days.

Doh, looks like I hit the "Copy and Paste" error... :) Correcting the
date fixed the problem. Thank you for the help!
0 new messages