mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
added more debugging messages in pam module
This commit is contained in:
@@ -86,15 +86,16 @@ unsigned i;
|
||||
switch (msg[i]->msg_style) {
|
||||
case PAM_ERROR_MSG:
|
||||
case PAM_TEXT_INFO:
|
||||
syslog(LOG_INFO, "PAM-auth conv info: %s", msg[i]->msg);
|
||||
|
||||
str_append_str(&pctx->msg, msg[i]->msg);
|
||||
str_append_data(&pctx->msg, " ", 1);
|
||||
pctx->sent_msg = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
switch (msg[i]->msg_style) {
|
||||
case PAM_PROMPT_ECHO_OFF:
|
||||
case PAM_PROMPT_ECHO_ON:
|
||||
syslog(LOG_INFO, "PAM-auth conv: echo-%s, sent: %d", (msg[i]->msg_style==PAM_PROMPT_ECHO_ON)?"on":"off", pctx->sent_msg);
|
||||
|
||||
if (pctx->sent_msg == 0) {
|
||||
/* no message, just asking for password */
|
||||
str_reset(&pctx->msg);
|
||||
|
||||
Reference in New Issue
Block a user