Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1538464

Summary: pam_sss force smartcard for TTY logins
Product: Red Hat Enterprise Linux 7 Reporter: adam winberg <adam.winberg>
Component: sssdAssignee: SSSD Maintainers <sssd-maint>
Status: CLOSED NEXTRELEASE QA Contact: sssd-qe <sssd-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: afarley, atikhono, fedoraproject, grajaiya, jhrozek, lslebodn, mkosek, mzidek, orion, pbrezina, sbose, thalman, tscherf
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-26 14:32:53 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 adam winberg 2018-01-25 07:09:52 UTC
Description of problem:

Using pam_pkcs11 we can use the parameter 'wait_for_card' to halt the pam
process until a smart card is inserted. pam_sss does not seem to have that feature.

Use case is to require smart card for logins. With GDM this is configured
via dconf, but with console/tty logins there is no such configuration
available as I know of. So with pam_sss you can freely logon to a TTY
without using smartcard. Or maybe there is a solution out there I'm missing?

Seeing as pam_pkcs11 is deprecated and wont be available in RHEL8, it would be nice if pam_sss/sssd can offer the same functionality. 


Version-Release number of selected component (if applicable):
sssd-1.15.2-50.el7_4.8.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Configure sssd for use with smartcards
2. Remove smartcard from reader
3. Log on to TTY (console) with your smartcard username.

Actual results:
Login prompts for password

Expected results:
There should be a configurable option making pam_sss wait until smartcard is inserted, as with pam_pkcs11. Exception should be made for local users.

Additional info:

Comment 2 Jakub Hrozek 2018-01-31 21:28:53 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3626

Comment 3 Jakub Hrozek 2018-04-25 12:07:17 UTC
Upstream ticket:
https://pagure.io/SSSD/sssd/issue/3650

Comment 4 Jakub Hrozek 2018-10-10 21:11:33 UTC
master:
42f69e2
2e4ecf5
d33a8be
d3a18f0
49be897
5cdb696

Comment 5 Jakub Hrozek 2019-02-14 08:48:20 UTC
Too late to add more backports to 7.7, postponing