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 1270029 - [RFE] Add a way to lookup users based on CAC identity certificates
Summary: [RFE] Add a way to lookup users based on CAC identity certificates
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: sssd
Version: 6.8
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: SSSD Maintainers
QA Contact: Namita Soman
Aneta Šteflová Petrová
URL:
Whiteboard:
Depends On: 1202724 1296693
Blocks: 1272422
TreeView+ depends on / blocked
 
Reported: 2015-10-08 20:27 UTC by Jakub Hrozek
Modified: 2020-05-04 10:51 UTC (History)
18 users (show)

Fixed In Version: sssd-1.13.2-1.el6
Doc Type: Enhancement
Doc Text:
Clone Of: 1202724
Environment:
Last Closed: 2016-05-10 20:21:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github SSSD sssd issues 3637 0 None None None 2020-05-04 10:51:39 UTC
Github SSSD sssd issues 3783 0 None None None 2020-05-04 10:51:48 UTC
Red Hat Product Errata RHBA-2016:0782 0 normal SHIPPED_LIVE sssd bug fix and enhancement update 2016-05-10 22:36:00 UTC

Comment 2 Roshni 2016-01-18 14:29:42 UTC
[root@dhcp123-129 ~]# rpm -qi sssd
Name        : sssd                         Relocations: (not relocatable)
Version     : 1.13.3                            Vendor: Red Hat, Inc.
Release     : 3.el6                         Build Date: Tue 12 Jan 2016 06:40:12 AM EST
Install Date: Thu 14 Jan 2016 12:19:38 PM EST      Build Host: x86-028.build.eng.bos.redhat.com
Group       : Applications/System           Source RPM: sssd-1.13.3-3.el6.src.rpm
Size        : 35147                            License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://fedorahosted.org/sssd/
Summary     : System Security Services Daemon

[root@dhcp123-129 ~]# rpm -qi ipa-client
Name        : ipa-client                   Relocations: (not relocatable)
Version     : 3.0.0                             Vendor: Red Hat, Inc.
Release     : 50.el6                        Build Date: Thu 07 Jan 2016 03:55:55 AM EST
Install Date: Thu 14 Jan 2016 12:20:27 PM EST      Build Host: x86-032.build.eng.bos.redhat.com
Group       : System Environment/Base       Source RPM: ipa-3.0.0-50.el6.src.rpm
Size        : 318993                           License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.freeipa.org/
Summary     : IPA authentication for use on clients

[root@dhcp123-129 ~]# rpm -qi sssd-dbus
Name        : sssd-dbus                    Relocations: (not relocatable)
Version     : 1.13.3                            Vendor: Red Hat, Inc.
Release     : 3.el6                         Build Date: Tue 12 Jan 2016 06:40:12 AM EST
Install Date: Thu 14 Jan 2016 12:48:23 PM EST      Build Host: x86-028.build.eng.bos.redhat.com
Group       : Applications/System           Source RPM: sssd-1.13.3-3.el6.src.rpm
Size        : 195930                           License: GPLv3+
Signature   : (none)
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://fedorahosted.org/sssd/
Summary     : The D-Bus responder of the SSSD

Verification steps:

1. yum install sssd-dbus
2. Setup ipa server with realm name mil (for CAC cards) and realm testrelm.test for (non-CAC cards)
3. Make the required configuration changes for ipa client installation.
4. ipa-client-install --mkhomedir
5. Modify /etc/sssd/sssd.conf as follows:
[sssd]
services = nss, sudo, pam, ssh, ifp

[pam]
pam_cert_auth = True

service sssd restart

6. Import and trust the issuing CA of the CAC card to be tested under /etc/pki/nssdb
7. Add an ipa user and add the signing cert on the card to the ipa user using the following commands

ipa user-add <CAC card user name>

ipa user-add-cert <CAC card user name> --certificate=<signing cert on CAC card>

The following are the user lookup commands:

8. [root@dhcp129-123 ~]# dbus-send --system --print-reply --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users org.freedesktop.sssd.infopipe.Users.FindByCertificate string:"$(cat /tmp/lastca_sign.pem)"

An output similar to the following should be obtained:

method return sender=:1.112 -> dest=:1.181 reply_serial=2
   object path "/org/freedesktop/sssd/infopipe/Users/mil/1052300003"

9. [root@dhcp129-123 ~]# dbus-send --system --print-reply --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users/mil/1052300003 org.freedesktop.DBus.Properties.Get string:"org.freedesktop.sssd.infopipe.Users.User" string:"name"
method return sender=:1.112 -> dest=:1.183 reply_serial=2
   variant       string "last.day.2001428082"

10. [root@dhcp129-123 ~]# dbus-send --system --print-reply --dest=org.freedesktop.sssd.infopipe /org/freedesktop/sssd/infopipe/Users/mil/1052300003 org.freedesktop.DBus.Properties.GetAll string:"org.freedesktop.sssd.infopipe.Users.User"
method return sender=:1.112 -> dest=:1.184 reply_serial=2
   array [
      dict entry(
         string "name"
         variant             string "last.day.2001428082"
      )
      dict entry(
         string "uidNumber"
         variant             uint32 1052300003
      )
      dict entry(
         string "gidNumber"
         variant             uint32 1052300003
      )
      dict entry(
         string "gecos"
         variant             string "last.day 2001428082"
      )
      dict entry(
         string "homeDirectory"
         variant             string "/home/last.day.2001428082"
      )
      dict entry(
         string "loginShell"
         variant             string "/bin/sh"
      )
      dict entry(
         string "groups"
         variant             array [
               object path "/org/freedesktop/sssd/infopipe/Groups/mil/1052300003"
            ]
      )
      dict entry(
         string "extraAttributes"
         variant             array [
            ]
      )
   ]

Tested the same using non-CAC cards (Gemalto 64k smart card, gemalto 64K usb card, SC650 SCP01 and SCP02, SC330J in the non-IPA CA environment; Athena smartcard in the IPA CA environment).

Comment 3 Roshni 2016-01-18 15:02:27 UTC
A few additional point during verification:

1. The ipa server was installed on RHEL 6.8 and a replica was created on RHEL 7.2 (to use ipa user-add-cert cli)

2. For smartcards with certificate issued by IPA CA, the certs were added to the card using RHEL 7 machine because engine_pkcs11 is not available on RHEL 6.
opensc has to be installed on RHEL 6 client machine to detect the certs on the card using https://dl.fedoraproject.org/pub/epel/6/x86_64/opensc-0.12.2-2.el6.x86_64.rpm

Comment 5 errata-xmlrpc 2016-05-10 20:21:21 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


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