Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) From: ghudson@mit.edu Subject: git commit RT-Send-CC: X-RT-Original-Encoding: iso-8859-1 Content-Length: 1480 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 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(-)