[2432] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

telnet/172: telnet doesn't say what creds it is getting.

daemon@ATHENA.MIT.EDU (John Hawkinson)
Sun Nov 10 20:43:18 1996

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: hartmans@MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, jhawk@MIT.EDU
Date: Sun, 10 Nov 1996 20:42:39 -0500
From: John Hawkinson <jhawk@MIT.EDU>
Reply-To: jhawk@MIT.EDU
To: krb5-bugs@MIT.EDU


>Number:         172
>Category:       telnet
>Synopsis:       telnet doesn't say what creds it is getting.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hartmans
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Sun Nov 10 20:43:01 EST 1996
>Last-Modified:
>Originator:     John Hawkinson
>Organization:
		MIT
>Release:        1.0-development
>Environment:
	
System: NetBSD lola-granola 1.1B NetBSD 1.1B (LOLA) #2: Thu Jul 11 00:13:13 EDT 1996 mycroft@zygorthian-space-raiders:/afs/sipb.mit.edu/project/netbsd/dev/current-source/build/i386_nbsd1/sys/arch/i386/compile/LOLA i386


>Description:

We want to know what we're getting credentials for so that we
can debug all of Sam's other patches without it being such a colossal
pain in the butt.

>How-To-Repeat:

Sit in the same room with Sam.

>Fix:

*** kerberos.c	1996/11/11 01:14:47	1.1
--- kerberos.c	1996/11/11 01:38:40	1.2
***************
*** 188,193 ****
--- 188,196 ----
  		printf("Kerberos V4: no realm for %s\r\n", RemoteHostName);
  		return(0);
  	}
+ 	if (auth_debug_mode)
+ 	        printf("Kerberos V4: getting credentials for %s.%s@%s\r\n",
+ 		       KRB_SERVICE_NAME, instance, realm);
  	if (r = krb_mk_req(&auth, KRB_SERVICE_NAME, instance, realm, 0)) {
  		printf("mk_req failed: %s\r\n", krb_err_txt[r]);
  		return(0);
*** kerberos5.c	1996/10/07 01:07:17	1.3
--- kerberos5.c	1996/11/11 01:38:50	1.4
***************
*** 243,248 ****
--- 243,260 ----
  	    return(0);
  	}
  
+ 	if (auth_debug_mode) {
+ 	  char *s;
+ 
+ 	  if (r = krb5_unparse_name(telnet_context, creds.server, &s)) {
+ 	    printf("telnet: Kerberos V5: error unparsing service name: %s\r\n",
+ 		   error_message(r));
+ 	    return(0);
+ 	  }
+ 	  printf("telnet: Kerberos V5: getting credentials for %s\r\n",
+ 		 s);
+ 	}
+ 
  	if (telnet_krb5_realm != NULL) {
  	    krb5_data rdata;
  

>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post