New password echoes on Sol8
Kevin Steves
stevesk at pobox.com
Sat Oct 27 06:31:32 EST 2001
On Fri, 26 Oct 2001, Ed Phillips wrote:
:I tried replacing readpassphrase() for v2.9.9p2 on Sol8 with a different
:version that just calls getpassphrase(). It appears to solve the echo
:problem when the user tries to login in interactive mode and needs to
:change their password.
:
:Can anyone else try this with v2.9.9p2 on Solaris? Be sure to add:
no!
try this:
Index: auth-pam.c
===================================================================
RCS file: /var/cvs/openssh/auth-pam.c,v
retrieving revision 1.37
diff -u -r1.37 auth-pam.c
--- auth-pam.c 2001/04/23 18:38:37 1.37
+++ auth-pam.c 2001/10/26 20:30:42
@@ -87,7 +87,7 @@
* messages with into __pam_msg. This is used during initial
* authentication to bypass the normal PAM password prompt.
*
- * OTHER mode handles PAM_PROMPT_ECHO_OFF with read_passphrase(prompt, 1)
+ * OTHER mode handles PAM_PROMPT_ECHO_OFF with read_passphrase()
* and outputs messages to stderr. This mode is used if pam_chauthtok()
* is called to update expired passwords.
*/
@@ -148,7 +148,7 @@
case PAM_PROMPT_ECHO_OFF:
reply[count].resp = xstrdup(
read_passphrase(PAM_MSG_MEMBER(msg, count,
- msg), 1));
+ msg), RP_ALLOW_STDIN));
reply[count].resp_retcode = PAM_SUCCESS;
break;
case PAM_ERROR_MSG:
More information about the openssh-unix-dev
mailing list