From tep@SDSC.EDU Fri May 29 16:53:02 1998
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) 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 postal.sdsc.edu by MIT.EDU with SMTP
id AA27561; Fri, 29 May 98 16:53:01 EDT
Received: from galt (rx25C9Zhexzfi9RBQ3IAtOLdjJAZRxRw@galt.sdsc.edu [132.249.40.111])
by postal.sdsc.edu (8.8.8/8.8.8/SDSCserver-16) with SMTP id NAA04676
for <krb5-bugs@mit.edu>; 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
System: SunOS galt 5.5.1 Generic_103640-18 sun4u sparc SUNW,Ultra-1
Architecture: sun4
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?
diff -r src.original/kadmin/cli/kadmin.c src/kadmin/cli/kadmin.c
172a173,176
< if (ccache_name)
---
< else if (use_keytab)
---
< else
---
State-Changed-From-To: open-closed
State-Changed-By: mdh
State-Changed-When: Wed Aug 12 18:31:06 1998
State-Changed-Why:
This has already been taken care of.
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) 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 postal.sdsc.edu by MIT.EDU with SMTP
id AA27561; Fri, 29 May 98 16:53:01 EDT
Received: from galt (rx25C9Zhexzfi9RBQ3IAtOLdjJAZRxRw@galt.sdsc.edu [132.249.40.111])
by postal.sdsc.edu (8.8.8/8.8.8/SDSCserver-16) with SMTP id NAA04676
for <krb5-bugs@mit.edu>; 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
>Organization:
San Diego Supercomputer Center, San Diego CA>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
>Organization:
Show quoted text
>Release: krb5-1.0.5
>Environment:
>Environment:
System: SunOS galt 5.5.1 Generic_103640-18 sun4u sparc SUNW,Ultra-1
Architecture: sun4
Show quoted text
>Description:
When the kadmin program prompts for a password, itdoes 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
>How-To-Repeat:
Run kadmin, note that password prompt does not name a principal.Show quoted text
>Fix:
diff -r src.original/kadmin/cli/kadmin.c src/kadmin/cli/kadmin.c
172a173,176
Show quoted text
> extern const char *krb5_default_pwd_prompt1;
> const char *oldprompt;
> char prompt[128];
>
375a380> const char *oldprompt;
> char prompt[128];
>
Show quoted text
>
380c385,386< if (ccache_name)
---
Show quoted text
> if (ccache_name) {
> fprintf(stdout, "kadmin: using principal \"%s\"\n",princstr);
387c393,395> 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);
394c402,408> 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;
400a415,417> 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;
> }
> krb5_default_pwd_prompt1 = oldprompt;
> }
Show quoted text
>Audit-Trail:
State-Changed-From-To: open-closed
State-Changed-By: mdh
State-Changed-When: Wed Aug 12 18:31:06 1998
State-Changed-Why:
This has already been taken care of.
Show quoted text
>Unformatted: