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 1079009 - Configuration changes for kinit on RHEL 7 - Smartcard with kerberos user
Summary: Configuration changes for kinit on RHEL 7 - Smartcard with kerberos user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: doc-System_Level_Authentication_Guide
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Tomas Capek
QA Contact: Asha Akkiangady
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-20 18:06 UTC by Roshni
Modified: 2019-03-06 00:55 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1120263 (view as bug list)
Environment:
Last Closed: 2015-03-10 12:07:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Roshni 2014-03-20 18:06:05 UTC
Description of problem:
Configuration changes for kinit on RHEL 7 - Smartcard with kerberos user

Version-Release number of selected component (if applicable):
RHEL 7.0

How reproducible:
always

Steps to Reproduce:
1. Remove pkinit_identities from /etc/krb5.conf
2. Add pkinit anchor to the krb5 files as follows

auth        optional      pam_krb5.so use_first_pass no_subsequent_prompt preauth_options=X509_user_identity=PKCS11:/usr/lib64/pkcs11/libcoolkeypk11.so

3. kinit command should be run as follows:

kinit -X X509_user_identity=PKCS11:/usr/lib64/pkcs11/libcoolkeypk11.so <user>

Actual results:


Expected results:


Additional info:

Comment 2 Roshni 2014-03-20 18:41:42 UTC
Step 2 of the description:

anchors must be added to the files /etc/pam.d/smartcard-auth and /etc/pam.d/system-auth

Comment 4 Deon Ballard 2014-07-23 00:28:50 UTC
I added this new section to cover setting up Kerberos for using smart cards:
https://documentation-devel.engineering.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System-Level_Authentication_Guide/krb-smart-cards.html

Comment 5 Roshni 2014-07-24 20:02:16 UTC
pkinit_identities in /etc/krb5.conf and 

auth        optional      pam_krb5.so use_first_pass no_subsequent_prompt preauth_options=X509_user_identity=PKCS11:/usr/lib64/pkcs11/libcoolkeypk11.so 

in /etc/pam.d/smartcard-auth and /etc/pam.d/system-auth cannot co-exist because applications like sudo and smartcard login using kerberos password will not work as expected.

As explained in the description of the bug:

1. Remove pkinit_identities from /etc/krb5.conf
2. Add the following to /etc/pam.d/smartcard-auth and /etc/pam.d/system-auth files

auth        optional      pam_krb5.so use_first_pass no_subsequent_prompt preauth_options=X509_user_identity=PKCS11:/usr/lib64/pkcs11/libcoolkeypk11.so

Comment 7 Roshni 2014-08-06 17:30:32 UTC
Verified in the document provided in comment 6


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