[krbdev.mit.edu #7991] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Thu Feb 19 12:46:24 EST 2015


Support kadmin script mode

Add support for a command and argments to be specified on the kadmin
command line, with script-friendly behavior.  kadmin_startup() now
yields either a request string or a request argv array, and sets
script_mode in the argv array case.  Informational messages now go
through info() and are suppressed if script_mode is set.  Prompts and
warning messages are also suppressed in script mode.  Error messages
indicating a failure now go through error() and set exit_status if
script_mode is set.  The extended com_err() hook is always installed
so that com_err messages go through error() and set exit_status.

getopt() is now invoked with a leading '+' to suppress Gnu getopt
argument reordering behavior, so that invokers don't need to pass "--"
to prevent query options from being treated as kadmin options.
Non-Gnu getopt implementations should harmlessly treat '+' as a valid
flag option, which has no effect as it will reach the same default
label in the switch statement.

https://github.com/krb5/krb5/commit/040fe97758bdf53b6c00815b0306410eb88ea5ec
Author: Greg Hudson <ghudson at mit.edu>
Commit: 040fe97758bdf53b6c00815b0306410eb88ea5ec
Branch: master
 doc/admin/admin_commands/kadmin_local.rst |   23 ++-
 src/kadmin/cli/kadmin.c                   |  351 ++++++++++++++++-------------
 src/kadmin/cli/kadmin.h                   |    3 +-
 src/kadmin/cli/ss_wrapper.c               |   18 +-
 4 files changed, 224 insertions(+), 171 deletions(-)



More information about the krb5-bugs mailing list