Fix misuse of PAM_PROMPT_ECHO_OFF in systemd-homed
Previously pam_systemd_home.so was relying on `PAM_PROMPT_ECHO_OFF` to display error messages to the user and also display the next prompt. `PAM_PROMPT_ECHO_OFF` was never meant as a way to convey information to the user, and following the example set in pam_unix.so you can see that it's meant to _only_ display the prompt. Details about why the authentication failed should be done in a `PAM_ERROR_MSG` before displaying a short prompt as per usual using `PAM_PROMPT_ECHO_OFF`.
Loading
Please register or sign in to comment