From: Barry Jaspan Date: Mon, 2 Jul 1990 19:41:47 +0000 (+0000) Subject: thus enabling user-to-user authentication. I believe that this should X-Git-Tag: krb5-1.0-alpha2~398 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db3f4e97dcb517a7ea039bd90bf9dcdd356ead59;p=krb5.git thus enabling user-to-user authentication. I believe that this should be the default and that -u should turn it off, but for the time being this is good enough for testing. bjaspan: added the -u option which turns *on* the DUPLICATE_SKEY bit, git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1013 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 39149ec48..ed451fb3c 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -69,11 +69,14 @@ main(argc, argv) if (rindex(argv[0], '/')) argv[0] = rindex(argv[0], '/')+1; - while ((option = getopt(argc, argv, "rpl:c:")) != EOF) { + while ((option = getopt(argc, argv, "rpul:c:")) != EOF) { switch (option) { case 'r': options |= KDC_OPT_RENEWABLE; break; + case 'u': + options |= KDC_OPT_DUPLICATE_SKEY; + break; case 'p': options |= KDC_OPT_PROXIABLE; break; @@ -108,7 +111,7 @@ main(argc, argv) errflg++; if (errflg) { - fprintf(stderr, "Usage: %s [ -rp ] [ -l lifetime ] [ -c cachename ] principal\n", argv[0]); + fprintf(stderr, "Usage: %s [ -rpu ] [ -l lifetime ] [ -c cachename ] principal\n", argv[0]); exit(2); } if (ccache == NULL) {