[krbdev.mit.edu #8393] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Mon Apr 25 21:10:16 EDT 2016


Improve kadmin parsing of time intervals

When parsing time intervals in kadmin commands, try
krb5_string_to_deltat() first, then fall back to subtracting the
current time from get_date().  If we do fall back, treat "never" as a
zero interval, and error out rather than yield a huge interval if
get_date() returns a time in the past.

Notable behavior differences: bare numbers of seconds and suffixed
numbers (e.g. "5m" or "6h") are now supported for all intervals;
HH:MM:SS and HH:MM are now treated as intervals rather than absolute
times with the current time subtracted.

https://github.com/krb5/krb5/commit/0e668054974b07ec7ffbe2d9d474062d590c7e69
Author: Greg Hudson <ghudson at mit.edu>
Commit: 0e668054974b07ec7ffbe2d9d474062d590c7e69
Branch: master
 doc/admin/admin_commands/kadmin_local.rst |   33 +++++----
 src/kadmin/cli/kadmin.c                   |  117 +++++++++++++++++------------
 2 files changed, 86 insertions(+), 64 deletions(-)



More information about the krb5-bugs mailing list