Skip to content

Commit 280eece

Browse files
committed
pam_sss: change PAM message type for PIN locked
To make sure GDM can display this message together with an authentication failed error message the PAM message type has to be the same.
1 parent a50a952 commit 280eece

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sss_client/pam_sss.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,9 @@ static int user_info_pin_locked(pam_handle_t *pamh)
732732
{
733733
int ret;
734734

735-
ret = do_pam_conversation(pamh, PAM_TEXT_INFO, _("PIN locked"),
735+
/* PAM_ERROR_MSG is used here to allow GDM to display this message
736+
* together with an authentication failed error message. */
737+
ret = do_pam_conversation(pamh, PAM_ERROR_MSG, _("PIN locked"),
736738
NULL, NULL);
737739
if (ret != PAM_SUCCESS) {
738740
D(("do_pam_conversation failed."));

0 commit comments

Comments
 (0)