From 73a532b5c5c1b88bca38387bffe3e17a9efc30d2 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Thu, 14 Mar 2013 19:53:23 +0100 Subject: [PATCH] Always send the provided password to PAM irrespective of the prompt. --- src/pam.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pam.c b/src/pam.c index 15031738..c437187f 100644 --- a/src/pam.c +++ b/src/pam.c @@ -35,10 +35,8 @@ struct pam_response *replies; for (i=0;imsg);*/ - if (msg[i]->msg_style == PAM_PROMPT_ECHO_OFF) - replies[i].resp = strdup(l->password); - else if (msg[i]->msg_style == PAM_PROMPT_ECHO_ON) - replies[i].resp = strdup(l->username); + /*if (msg[i]->msg_style == PAM_PROMPT_ECHO_OFF)*/ + replies[i].resp = strdup(l->password); } *resp = replies;