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 ; 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 ; 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 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 >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 >Release: krb5-1.0.5 >Environment: System: SunOS galt 5.5.1 Generic_103640-18 sun4u sparc SUNW,Ultra-1 Architecture: sun4 >Description: 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? >How-To-Repeat: Run kadmin, note that password prompt does not name a principal. >Fix: diff -r src.original/kadmin/cli/kadmin.c src/kadmin/cli/kadmin.c 172a173,176 > extern const char *krb5_default_pwd_prompt1; > const char *oldprompt; > char prompt[128]; > 375a380 > 380c385,386 < if (ccache_name) --- > if (ccache_name) { > fprintf(stdout, "kadmin: using principal \"%s\"\n",princstr); 387c393,395 < else if (use_keytab) --- > } > else if (use_keytab){ > fprintf(stdout, "kadmin: using principal \"%s\"\n",princstr); 394c402,408 < else --- > } > 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 > /* restore original prompt */ > krb5_default_pwd_prompt1 = oldprompt; > } >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. >Unformatted: