Skip Menu |

Download (untitled) / with headers
text/plain 2.8KiB
From tep@SDSC.EDU Fri May 29 16:53:02 1998
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU []) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id QAA12740 for <bugs@RT-11.MIT.EDU>; Fri, 29 May 1998 16:53:02 -0400
Received: from by MIT.EDU with SMTP
id AA27561; Fri, 29 May 98 16:53:01 EDT
Received: from galt ( [])
by (8.8.8/8.8.8/SDSCserver-16) with SMTP id NAA04676
for <>; Fri, 29 May 1998 13:52:59 -0700 (PDT)
Received: by galt (SMI-8.6/1.11-client)
id NAA13555; Fri, 29 May 1998 13:52:59 -0700
Message-Id: <199805292052.NAA13555@galt>
Date: Fri, 29 May 1998 13:52:59 -0700
From: Tom Perrine <tep@SDSC.EDU>
Reply-To: tep@SDSC.EDU
To: krb5-bugs@MIT.EDU
Subject: kadmin does not ID principal when asking for a password
X-Send-Pr-Version: 3.99

Show quoted text
>Number: 603
>Category: krb5-admin
>Synopsis: kadmin does not ID principal when asking for a password
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bjaspan
>State: closed
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Fri May 29 16:54:00 EDT 1998
>Last-Modified: Wed Aug 12 18:31:19 EDT 1998
>Originator: Tom Perrine
San Diego Supercomputer Center, San Diego CA
Show quoted text
>Release: krb5-1.0.5

System: SunOS galt 5.5.1 Generic_103640-18 sun4u sparc SUNW,Ultra-1
Architecture: sun4

Show quoted text
When the kadmin program prompts for a password, it
does not tell you which principal it is trying to use.
This can be confusing, especially with the inconsistent ways
"su" works on various UNIX flavors.

Linit announces the principal name, why not kadmin?

Show quoted text
Run kadmin, note that password prompt does not name a principal.
Show quoted text

diff -r src.original/kadmin/cli/kadmin.c src/kadmin/cli/kadmin.c
Show quoted text
> extern const char *krb5_default_pwd_prompt1;
> const char *oldprompt;
> char prompt[128];
Show quoted text
< if (ccache_name)
Show quoted text
> if (ccache_name) {
> fprintf(stdout, "kadmin: using principal \"%s\"\n",princstr);
< else if (use_keytab)
Show quoted text
> }
> else if (use_keytab){
> fprintf(stdout, "kadmin: using principal \"%s\"\n",princstr);
< else
Show quoted text
> }
> else {
> /* save old prompt string pointer,
> set it to my local area...*/
> oldprompt = krb5_default_pwd_prompt1;
> sprintf (prompt, "Password for %s: ",princstr);
> krb5_default_pwd_prompt1 = prompt;
Show quoted text
> /* restore original prompt */
> krb5_default_pwd_prompt1 = oldprompt;
> }

Show quoted text

State-Changed-From-To: open-closed
State-Changed-By: mdh
State-Changed-When: Wed Aug 12 18:31:06 1998

This has already been taken care of.

Show quoted text