RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2079441 - SSSD update prompts for smartcard pin twice - After update to 7.9 [rhel-7.9.z]
Summary: SSSD update prompts for smartcard pin twice - After update to 7.9 [rhel-7.9.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: sssd
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Sumit Bose
QA Contact: Scott Poore
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-27 14:45 UTC by Alexey Tikhonov
Modified: 2022-06-28 09:55 UTC (History)
9 users (show)

Fixed In Version: sssd-1.16.5-10.el7_9.13
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-28 09:54:33 UTC
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-120198 0 None None None 2022-04-27 14:56:07 UTC
Red Hat Issue Tracker SSSD-4636 0 None None None 2022-04-27 18:39:55 UTC
Red Hat Product Errata RHBA-2022:5240 0 None None None 2022-06-28 09:54:38 UTC

Comment 3 Alexey Tikhonov 2022-04-27 14:48:37 UTC
https://github.com/SSSD/sssd/pull/6024 needs a backport to 1-16 branch.

Comment 5 Alexey Tikhonov 2022-05-30 13:28:43 UTC
Upstream PR: https://github.com/SSSD/sssd/pull/6187

Comment 9 Alexey Tikhonov 2022-06-10 12:46:59 UTC
Pushed PR: https://github.com/SSSD/sssd/pull/6187

* `sssd-1-16`
    * ddfc7e99e96ee732586c07342900d287d2378802 - pam_sss: fix for old GDM screen lock
    * bcb392e60c1935a98738988c5289585acd89ce82 - pam: better SC fallback message

Comment 12 Scott Poore 2022-06-13 13:58:39 UTC
Verified.

Version ::

sssd-1.16.5-10.el7_9.13.x86_64


Results ::

# Setup basic sssd configuration for smart card authentication

yum -y install sssd opensc pcsc-lite gnutls-utils
yum remove -y pam_pkcs11

modutil -dbdir /etc/pki/nssdb -add 'Opensc module' -libfile /usr/lib64/opensc-pkcs11.so

authconfig --enablesssd --enablesssdauth --enablesmartcard --smartcardmodule=sssd --update

cat > /etc/sssd/sssd.conf <<EOF
[sssd]
debug_level = 9
services = nss, pam
domains = shadowutils

[nss]
debug_level = 9

[pam]
debug_level = 9
pam_cert_auth = True

[domain/shadowutils]
debug_level = 9
id_provider = files

[certmap/shadowutils/localuser1]
debug_level = 9
matchrule = <SUBJECT>.*
EOF

chmod 600 /etc/sssd/sssd.conf

systemctl start pcscd
systemctl enable pcscd

yum -y install sssd-polkit-rules sssd-dbus

cp /usr/share/polkit-1/rules.d/sssd-pcsc.rules \
   /usr/share/polkit-1/rules.d/gdm-pcsc.rules
sed -i 's/sssd/gdm/g' /usr/share/polkit-1/rules.d/gdm-pcsc.rules
systemctl restart polkit

systemctl stop sssd; rm -rf /var/lib/sss/{db,mc}/*; systemctl start sssd

# comment out pam_unix auth lines from system-auth, smartcard-auth, gdm-*, maybe more

cd /etc/pam.d
sed -i 's/auth.*pam_unix/#\0/' system-auth
sed -i 's/auth.*pam_unix/#\0/' password-auth
sed -i 's/account.*pam_unix/#\0/' smartcard-auth

# Setup card with external certificate/key
# used openssl generated rootCA and valid and expired certificate/key pairs.

### check valid certificate response
Login allowed via gdm as expected with PIN

### check invalid certificate response
Error message says to "Please (re)insert (different) Smartcard".

# check with valid certificate again
message still shown until remove and reinsert smartcard.

Comment 17 errata-xmlrpc 2022-06-28 09:54: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-2022:5240


Note You need to log in before you can comment on or make changes to this bug.