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 1266108

Summary: Check next certificate on smart card if first is not valid
Product: Red Hat Enterprise Linux 6 Reporter: Jakub Hrozek <jhrozek>
Component: sssdAssignee: Sumit Bose <sbose>
Status: CLOSED ERRATA QA Contact: Namita Soman <nsoman>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: grajaiya, jgalipea, jhrozek, ksiddiqu, lslebodn, mkosek, mzidek, nsoman, pbrezina, preichl, rpattath, sgoveas, spoore
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sssd-1.13.2-4.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1300024 (view as bug list) Environment:
Last Closed: 2016-05-10 20:19:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1299066    
Bug Blocks: 1300024    

Description Jakub Hrozek 2015-09-24 13:38:23 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/sssd/ticket/2801

When checking for certificate on a smart card, if the first (of multiple) is revoked or expired, sssd should continue to check the other certificates for a valid one.

My understanding today is that if a smart card has multiple user certificates and the first is revoked or expired, no others are checked.  It would be nice to have all checked for a valid one to use.

Comment 1 Jakub Hrozek 2015-11-26 15:44:09 UTC
Fixed upstream:
   * master: d0de7701d44c7a75210a9cb04634913ce3a94bfb
   * sssd-1-13: 6a1b214b4f17cd91afbcc8840caa65c875d52d3f

Comment 3 Roshni 2016-01-19 17:46:48 UTC
I am changing the bug status to FAILED_QA because of https://bugzilla.redhat.com/show_bug.cgi?id=1299994 and https://bugzilla.redhat.com/show_bug.cgi?id=1299998. 

gdm login and su using smartcard are working as expected, finding the valid cert from the card and successfully logging in.

Comment 4 Sumit Bose 2016-01-21 11:54:03 UTC
I think FailedQA is not justified here because the ticket is about an issue in SSSD which is fixed.

Neither SSSD nor IPA can do anything about the issue in the OpenSSH client. Other ssh clients with Smartcard support might even work as expected. I would like to ask you to reconsider if this ticket can be set to verified.

Comment 5 Namita Soman 2016-01-22 12:12:57 UTC
Agreed, Sumit. This can be set as verified. Thanks for following on bz1299994.

Comment 6 Roshni 2016-01-25 15:14:13 UTC
Will verify this bug once there is a decision on https://bugzilla.redhat.com/show_bug.cgi?id=1299066

Comment 7 Scott Poore 2016-03-08 15:09:42 UTC
Marking this one verified.  Tests completed by Roshni earlier.  Was just waiting on bug #1299066 which is now verified.

Comment 9 errata-xmlrpc 2016-05-10 20:19:42 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, 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://rhn.redhat.com/errata/RHBA-2016-0782.html