mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
Always send the provided password to PAM irrespective of the prompt.
This commit is contained in:
@@ -35,10 +35,8 @@ struct pam_response *replies;
|
||||
|
||||
for (i=0;i<msg_size;i++) {
|
||||
/*syslog(LOG_DEBUG, "PAM message: %s\n", msg[i]->msg);*/
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user