From a952dc2c522d44128b29609d324bba2068dc1593 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Sat, 2 Feb 2013 05:42:05 +0800 Subject: [PATCH] Add -F to kinit for compatibility with MIT Kerberos. --- kuser/kinit.1 | 7 ++++--- kuser/kinit.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/kuser/kinit.1 b/kuser/kinit.1 index 56ad66dd4..c31c349bd 100644 --- a/kuser/kinit.1 +++ b/kuser/kinit.1 @@ -99,9 +99,10 @@ Supported options: .It Fl c Ar cachename Fl Fl cache= Ns Ar cachename The credentials cache to put the acquired ticket in, if other than default. -.It Fl f Fl Fl no-forwardable -Get ticket that can be forwarded to another host, or if the negative -flags use, don't get a forwardable flag. +.It Fl f Fl Fl forwardable +Obtain a ticket than can be forwarded to another host. +.It Fl F Fl Fl no-forwardable +Do not obtain a forwardable ticket. .It Fl t Ar keytabname , Fl Fl keytab= Ns Ar keytabname Don't ask for a password, but instead get the key from the specified keytab. diff --git a/kuser/kinit.c b/kuser/kinit.c index 24530259c..ac8cb30bf 100644 --- a/kuser/kinit.c +++ b/kuser/kinit.c @@ -102,7 +102,7 @@ static struct getargs args[] = { { "cache", 'c', arg_string, &cred_cache, NP_("credentials cache", ""), "cachename" }, - { "forwardable", 0, arg_negative_flag, &forwardable_flag, + { "forwardable", 'F', arg_negative_flag, &forwardable_flag, NP_("get tickets not forwardable", ""), NULL }, { NULL, 'f', arg_flag, &forwardable_flag,