dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0009-Replaced-enter-with-insert.patch

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