From 02fbf47a85228c131f1b0575da091a01da700189 Mon Sep 17 00:00:00 2001 From: vinay mishra Date: Mon, 18 May 2020 10:32:55 +0530 Subject: [PATCH] Replaced 'enter' with 'insert' Resolves: https://github.com/SSSD/sssd/issues/5164 Signed-off-by: vinay mishra Reviewed-by: Sumit Bose --- src/sss_client/pam_sss.c | 4 ++-- src/tests/intg/test_pam_responder.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c index d4f0a8917..69b440774 100644 --- a/src/sss_client/pam_sss.c +++ b/src/sss_client/pam_sss.c @@ -2422,8 +2422,8 @@ static int get_authtok_for_password_change(pam_handle_t *pamh, return PAM_SUCCESS; } -#define SC_ENTER_LABEL_FMT "Please enter smart card labeled\n %s" -#define SC_ENTER_FMT "Please enter smart card" +#define SC_ENTER_LABEL_FMT "Please insert smart card labeled\n %s" +#define SC_ENTER_FMT "Please insert smart card" static int check_login_token_name(pam_handle_t *pamh, struct pam_items *pi, int retries, bool quiet_mode) diff --git a/src/tests/intg/test_pam_responder.py b/src/tests/intg/test_pam_responder.py index 9b5e650ca..7a2458339 100644 --- a/src/tests/intg/test_pam_responder.py +++ b/src/tests/intg/test_pam_responder.py @@ -512,7 +512,7 @@ def test_require_sc_auth_no_cert(simple_pam_cert_auth_no_cert, env_for_sssctl): assert end_time > start_time and \ (end_time - start_time) >= 20 and \ (end_time - start_time) < 40 - assert out.find("Please enter smart card\nPlease enter smart card") != -1 + assert out.find("Please insert smart card\nPlease insert smart card") != -1 assert err.find("pam_authenticate for user [user1]: Authentication " + "service cannot retrieve authentication info") != -1 -- 2.21.3