pam_prompt Giving Conversation failed

Posted on

I have build a custom pam module to add MFA.

So to ask user after entering password I have used pam_prompt() function to display options for MFA and take user input.

That pam_prompt() is returning code 19 (PAM_CONV_ERR) "Conversation Failed" with SSH.

Same function when used by UI to Display MFA list is working fine.

Any idea of it.

Same is working on RHEL 8. I am currently using RHEL 9.4

Responses