[1159] in Kerberos_V5_Development
Re: getdate.y loses on integers
daemon@ATHENA.MIT.EDU (Barry Jaspan)
Fri May 10 15:52:33 1996
Date: Fri, 10 May 1996 15:51:58 -0400
From: "Barry Jaspan" <bjaspan@MIT.EDU>
To: eichin@MIT.EDU
Cc: krbdev@MIT.EDU
In-Reply-To: <xe1hgtprpir.fsf@maneki-neko.cygnus.com> (message from Mark Eichin on 10 May 1996 02:49:48 -0400)
Why not just use krb5_string_to_deltat, and tell people if they want
seconds, to throw an 's' on the end?
We didn't use krb5_string_to_deltat because I didn't know it existed
until just now, and certainly not a couple years ago when Tom first
wrote the OV admin cli; also because OV used getdate in its GUI client
so we wanted the same interface in the CLI.
getdate allows specifications like "3 months" or "1 year", which are
likely to be useful for password policy specifications; a brief scan
of str_conv.c leads me to believe it doesn't handle units larger than
days (although maybe that's easy to fix).
I have no particular love for getdate, if krb5_string_to_deltat is a
sufficient interface I'm happy to use it instead.
Barry