From: Tom Yu Date: Sat, 12 Feb 2005 00:27:35 +0000 (+0000) Subject: * kadmin.c (kadmin_startup): New flag "-N" to prevent fallback to X-Git-Tag: ms-bug-test-20060525~334 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=720a2f9e436b96ed05d09682cc4fd0c0bebfedab;p=krb5.git * kadmin.c (kadmin_startup): New flag "-N" to prevent fallback to AUTH_GSSAPI. * kadmin.M: Describe "-O" and "-N" flags. ticket: 2913 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17101 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/cli/ChangeLog b/src/kadmin/cli/ChangeLog index 1fe06ba3e..1e2ef44f0 100644 --- a/src/kadmin/cli/ChangeLog +++ b/src/kadmin/cli/ChangeLog @@ -1,3 +1,10 @@ +2005-02-11 Tom Yu + + * kadmin.c (kadmin_startup): New flag "-N" to prevent fallback to + AUTH_GSSAPI. + + * kadmin.M: Describe "-O" and "-N" flags. + 2004-09-17 Tom Yu * Makefile.in (install): Use $(INSTALL_SCRIPT) for scripts. diff --git a/src/kadmin/cli/kadmin.M b/src/kadmin/cli/kadmin.M index a35106c71..d9d6abda1 100644 --- a/src/kadmin/cli/kadmin.M +++ b/src/kadmin/cli/kadmin.M @@ -5,6 +5,7 @@ kadmin \- Kerberos V5 database administration program .TP .B kadmin .ad l +[\fB\-O\fP | \fB\-N\fP] [\fB\-r\fP \fIrealm\fP] [\fB\-p\fP \fIprincipal\fP] [\fB\-q\fP \fIquery\fP] .br [[\fB-c\fP \fIcache_name\fP] | [\fB-k\fP [\fB-t\fP @@ -140,7 +141,12 @@ to prompt for the master database password. \fB\-e\fP \fIenc:salt_list\fP Sets the list of encryption types and salt types to be used for any new keys created. - +.TP +.B \-O +Force use of old AUTH_GSSAPI authentication flavor. +.TP +.B \-N +Prevent fallback to AUTH_GSSAPI authentication flavor. .SH DATE FORMAT Various commands in kadmin can take a variety of date formats, specifying durations or absolute times. Examples of valid formats are: diff --git a/src/kadmin/cli/kadmin.c b/src/kadmin/cli/kadmin.c index 9b9294df7..957659dad 100644 --- a/src/kadmin/cli/kadmin.c +++ b/src/kadmin/cli/kadmin.c @@ -193,7 +193,7 @@ char *kadmin_startup(argc, argv) exit(1); } - while ((optchar = getopt(argc, argv, "r:p:kq:w:d:s:mc:t:e:O")) != EOF) { + while ((optchar = getopt(argc, argv, "r:p:kq:w:d:s:mc:t:e:ON")) != EOF) { switch (optchar) { case 'r': def_realm = optarg; @@ -244,6 +244,9 @@ char *kadmin_startup(argc, argv) case 'O': params.mask |= KADM5_CONFIG_OLD_AUTH_GSSAPI; break; + case 'N': + params.mask |= KADM5_CONFIG_AUTH_NOFALLBACK; + break; default: usage(); }