Skip Menu |
 

Date: Mon, 08 Jan 2007 16:06:51 -0500
From: Jeff Blaine <jblaine@kickflop.net>
To: krb5-bugs@mit.edu
Subject: kadmin and kadmin.local with -h
It makes no sense to have a program containing usage information
that is not accessible unless one provides an invalid flag to
the program:

/export/k5/sbin/kadmin -h
/export/k5/sbin/kadmin: illegal option -- h
Usage: kadmin [-r realm] [-p principal] [-q query] [clnt|local args]
clnt args: [-s admin_server[:port]] [[-c ccache]|[-k [-t keytab]]]
local args: [-x db_args]* [-d dbname] [-e "enc:salt ..."] [-m]
where,
[-x db_args]* - any number of database specific arguments.
Look at each database documentation for
supported arguments
Date: Fri, 23 Apr 2010 15:52:51 -0400
From: Jeff Blaine <jblaine@kickflop.net>
To: krb5-bugs@mit.edu
Subject: Patch for 'bug' 5291
My report here http://krbdev.mit.edu/rt/Ticket/Display.html?id=5291
is fixed by this simple patch. Just more 'polish' small stuff.

This would be easier with an RT account ;)

--- ../../PRISTINE-DONT-MOD-krb5-1.8/src/kadmin/cli/kadmin.c 2009-12-28
13:03:31.000000000 -0500
+++ kadmin/cli/kadmin.c 2010-04-23 15:46:11.000000000 -0400
@@ -271,7 +271,7 @@
}
while ((optchar = getopt(argc, argv,
- "x:r:p:knq:w:d:s:mc:t:e:ON")) != EOF) {
+ "x:r:p:knhq:w:d:s:mc:t:e:ON")) != EOF) {
switch (optchar) {
case 'x':
db_args_size++;
@@ -348,6 +348,8 @@
case 'N':
params.mask |= KADM5_CONFIG_AUTH_NOFALLBACK;
break;
+ case 'h':
+ usage();
default:
usage();
}