The -k Option of Telnet Command

Ken Hoyt <hoyt@hpindyo.cup.hp.com> Fri, 17 November 1995 20:52 UTC

Received: from ietf.nri.reston.va.us by IETF.CNRI.Reston.VA.US id aa22343; 17 Nov 95 15:52 EST
Received: from CNRI.Reston.VA.US by IETF.CNRI.Reston.VA.US id aa22337; 17 Nov 95 15:52 EST
Received: from timbuk.cray.com by CNRI.Reston.VA.US id aa15549; 17 Nov 95 15:52 EST
Received: from ironwood.cray.com (daemon@ironwood-fddi.cray.com [128.162.21.36]) by timbuk.cray.com (8.6.12/CRI-gate-8-2.11) with ESMTP id OAA28780; Fri, 17 Nov 1995 14:44:05 -0600
Received: (from daemon@localhost) by ironwood.cray.com (8.6.12/CRI-ccm_serv-8-2.8) id OAA06374 for telnet-ietf_list@sdiv; Fri, 17 Nov 1995 14:42:33 -0600
Received: from t2.cray.com (root@t2 [128.162.19.5]) by ironwood.cray.com (8.6.12/CRI-ccm_serv-8-2.8) with ESMTP id OAA06363 for <telnet-ietf@ironwood.cray.com>; Fri, 17 Nov 1995 14:42:32 -0600
Received: from timbuk.cray.com (root@timbuk.cray.com [128.162.19.7]) by t2.cray.com (8.6.12/craymail-smart) with ESMTP id OAA16918 for <telnet-ietf@cray.com>; Fri, 17 Nov 1995 14:42:31 -0600
Received: from hp.com (hp.com [15.255.152.4]) by timbuk.cray.com (8.6.12/CRI-gate-8-2.11) with ESMTP id OAA28573 for <telnet-ietf@cray.com>; Fri, 17 Nov 1995 14:42:30 -0600
Received: from hpindyo.cup.hp.com (hpindvn.cup.hp.com) by hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA115300945; Fri, 17 Nov 1995 12:42:25 -0800
Received: by hpindyo.cup.hp.com with SMTP (1.37.109.15/15.5+IOS 3.20+cup+OMrelay) id AA129241037; Fri, 17 Nov 1995 12:43:57 -0800
Message-Id: <199511172043.AA129241037@hpindyo.cup.hp.com>
To: telnet-ietf@cray.com
Cc: hoyt@hpindyo.cup.hp.com, marjo@hpindyo.cup.hp.com
Subject: The -k Option of Telnet Command
Date: Fri, 17 Nov 1995 12:43:57 -0800
Sender: ietf-archive-request@IETF.CNRI.Reston.VA.US
From: Ken Hoyt <hoyt@hpindyo.cup.hp.com>

We are attempting to support Kerberos 5 authentication on our Telnet and 
are being asked to support the "-k <realm>" option for the telnet command.
However, I noticed the following code segment in the BSD telnet command
code (from main.c):

	case 'k':
	#if defined(AUTHENTICATION) && defined(KRB4)
	    {
	    extern char *dest_realm, dst_realm_buf[], dst_realm_sz;
	    dest_realm = dst_realm_buf;
	    (void)strncpy(dest_realm, optarg, dst_realm_sz);
	    }
	#else
	    fprintf(stderr,
		   "%s: Warning: -k ignored, no Kerberos V4 support.\n",
		   prompt);
        #endif
        break;

In this code, it seems obvious to me that the -k option is not supported
outside of Kerberos 4 authentication.  Therefore, my questions are:

   1. Is it really true that the -k option is only supported within
      Kerberos 4 authentication and thus not intended for support
      within Kerberos 5 authentication?

   2. a. If the answer to #1 is yes, then is there another way in which
         this functionality is implemented?

      b. If the answer to #1 is no, please elaborate on what it would
	 take to support the -k option for Kerberos 5.

I apologize if this seems like a trivial or obvious matter, but I want
to make sure I am clear on this issue.

Thank you.

- Ken Hoyt (hoyt@cup.hp.com)
  Hewlett-Packard
  (408) 447-3042