summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-10-28 22:36:55 +1100
committerDamien Miller <djm@mindrot.org>2001-10-28 22:36:55 +1100
commit092564869a30a7e1f51969fa736149f9246a9831 (patch)
tree244692e8d8e480e9b1256a13d897de091d184b8f
parentc3aa3dd70c73312423797909af8d5fcad10db235 (diff)
- (djm) Fix for PAM password changes being echoed (from stevesk)
-rw-r--r--ChangeLog3
-rw-r--r--auth-pam.c8
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 48336987c..384e1578b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
120011028 120011028
2 - (djm) Avoid bug in Solaris PAM libs 2 - (djm) Avoid bug in Solaris PAM libs
3 - (djm) Disconnect if no tty and PAM reports password expired 3 - (djm) Disconnect if no tty and PAM reports password expired
4 - (djm) Fix for PAM password changes being echoed (from stevesk)
4 5
520011027 620011027
6 - (tim) [configure.ac] Fixes for ReliantUNIX (don't use libucb) 7 - (tim) [configure.ac] Fixes for ReliantUNIX (don't use libucb)
@@ -6778,4 +6779,4 @@
6778 - Wrote replacements for strlcpy and mkdtemp 6779 - Wrote replacements for strlcpy and mkdtemp
6779 - Released 1.0pre1 6780 - Released 1.0pre1
6780 6781
6781$Id: ChangeLog,v 1.1623 2001/10/28 11:34:52 djm Exp $ 6782$Id: ChangeLog,v 1.1624 2001/10/28 11:36:55 djm Exp $
diff --git a/auth-pam.c b/auth-pam.c
index 2767eb156..08ba132a4 100644
--- a/auth-pam.c
+++ b/auth-pam.c
@@ -35,7 +35,7 @@
35 35
36extern char *__progname; 36extern char *__progname;
37 37
38RCSID("$Id: auth-pam.c,v 1.38 2001/10/28 11:33:48 djm Exp $"); 38RCSID("$Id: auth-pam.c,v 1.39 2001/10/28 11:36:56 djm Exp $");
39 39
40#define NEW_AUTHTOK_MSG \ 40#define NEW_AUTHTOK_MSG \
41 "Warning: Your password has expired, please change it now" 41 "Warning: Your password has expired, please change it now"
@@ -87,7 +87,7 @@ int do_pam_authenticate(int flags)
87 * messages with into __pam_msg. This is used during initial 87 * messages with into __pam_msg. This is used during initial
88 * authentication to bypass the normal PAM password prompt. 88 * authentication to bypass the normal PAM password prompt.
89 * 89 *
90 * OTHER mode handles PAM_PROMPT_ECHO_OFF with read_passphrase(prompt, 1) 90 * OTHER mode handles PAM_PROMPT_ECHO_OFF with read_passphrase()
91 * and outputs messages to stderr. This mode is used if pam_chauthtok() 91 * and outputs messages to stderr. This mode is used if pam_chauthtok()
92 * is called to update expired passwords. 92 * is called to update expired passwords.
93 */ 93 */
@@ -146,9 +146,9 @@ static int do_pam_conversation(int num_msg, const struct pam_message **msg,
146 reply[count].resp_retcode = PAM_SUCCESS; 146 reply[count].resp_retcode = PAM_SUCCESS;
147 break; 147 break;
148 case PAM_PROMPT_ECHO_OFF: 148 case PAM_PROMPT_ECHO_OFF:
149 reply[count].resp = xstrdup( 149 reply[count].resp =
150 read_passphrase(PAM_MSG_MEMBER(msg, count, 150 read_passphrase(PAM_MSG_MEMBER(msg, count,
151 msg), 1)); 151 msg), RP_ALLOW_STDIN));
152 reply[count].resp_retcode = PAM_SUCCESS; 152 reply[count].resp_retcode = PAM_SUCCESS;
153 break; 153 break;
154 case PAM_ERROR_MSG: 154 case PAM_ERROR_MSG: