Bug 1713143

Summary: SSSD does not translate the 2FA text labels("first factor" / "second factor") on GDM login and screensaver unlock screen
Product: Red Hat Enterprise Linux 8 Reporter: amit yadav <ayadav>
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: Scott Poore <spoore>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.3CC: atikhono, dlavu, grajaiya, jhrozek, ljanda, lslebodn, mzidek, pbrezina, sbose, sssd-maint, thalman, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: sync-to-jira
Fixed In Version: sssd-2.5.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:46:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description amit yadav 2019-05-23 01:35:01 UTC
Description of problem:
When using the 2Factor Authentication on RHEL7.6 machines in combination with sssd, gdm and GNOME3 desktop(using yubikeys),
the user is prompted  for "First Factor" and "Second Factor" when logging in or when unlocking a previously locked desktop.

In contrast with all other Textlabels on the Login Screen (and Unlock Screen respectively) the two Labels provided for the credential 
Textfields are not translated (into German) but rendered in English. 

These labels should be tranlated based on the locale set by the user. 

Expected Label Text for a German Customer:
 
 "First Factor" should be "Passwort"
 "Second Factor" should be "OTP Token"


Version-Release number of selected component (if applicable):
sssd-1.16.2-13.el7_6.8.x86_64

How reproducible:
Always

Steps to Reproduce:

1. Set system locale to German

   # localectl set-locale LANG=de_DE.utf8

2. Enable "Two factor authentication (password + OTP)" on the RHEL7 system.

3. Logout and try to login into the system.

Actual results:
The two Labels provided for the credential text fields are not translated into German but rendered in English.

Expected results:
It should be translated based on the locale set on the system

Additional info:
There is an RFE filed to make 2FA prompting configurable [1] but I am not sure whether it will also fix the translation issue.

[1]https://bugzilla.redhat.com/show_bug.cgi?id=1402056

Comment 24 Scott Poore 2021-05-17 21:14:01 UTC
Pre-verified.

Version ::

sssd-2.5.0-1.el8.x86_64

Results ::

# msgunfmt /usr/share/locale/de/LC_MESSAGES/sssd.mo | grep -A1 -E '(First Factor|Second Factor)'
msgid "First Factor (Current Password): "
msgstr "Erster Faktor (aktuelles Passwort): "
--
msgid "First Factor: "
msgstr "Erster Faktor (Passwort): "
--
msgid "Second Factor (optional): "
msgstr "Zweiter Faktor (optional): "
--
msgid "Second Factor: "
msgstr "Zweiter Faktor (OTP Token): "

Comment 29 Scott Poore 2021-06-09 11:33:38 UTC
Verified.

Version ::

sssd-2.5.0-1.el8.x86_64


Results ::

# msgunfmt /usr/share/locale/de/LC_MESSAGES/sssd.mo | grep -A1 -E '(First Factor|Second Factor)'
msgid "First Factor (Current Password): "
msgstr "Erster Faktor (aktuelles Passwort): "
--
msgid "First Factor: "
msgstr "Erster Faktor (Passwort): "
--
msgid "Second Factor (optional): "
msgstr "Zweiter Faktor (optional): "
--
msgid "Second Factor: "
msgstr "Zweiter Faktor (OTP Token): "

Comment 31 errata-xmlrpc 2021-11-09 19:46:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (sssd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4435