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 2150335

Summary: idm:client is missing dependency on krb5-pkinit.
Product: Red Hat Enterprise Linux 9 Reporter: Florence Blanc-Renaud <frenaud>
Component: ipaAssignee: Florence Blanc-Renaud <frenaud>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.2CC: ipa-qe, myusuf, ndehadra, pasik, rcritten, sumenon, tscherf
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.10.1-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2149889 Environment:
Last Closed: 2023-05-09 07:33:20 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:
Bug Depends On: 2149889    
Bug Blocks:    

Description Florence Blanc-Renaud 2022-12-02 14:30:09 UTC
+++ This bug was initially created as a clone of Bug #2149889 +++

Description of problem: idm:client is missing dependency on krb5-pkinit

Version-Release number of selected component (if applicable):
ipa-server-4.9.10-8.module+el8.8.0+17351+9a3fb056.x86_64
ipa-client-4.9.10-8.module+el8.8.0+17351+9a3fb056.x86_64  

How reproducible: Always


Steps to Reproduce:
1. dnf module install -y idm:DL1/client
2. [root@client tls]# ipa-client-install --domain testrelm.test --realm TESTRELM.TEST  
--server=master.testrelm.test 
--pkinit-identity=FILE:/etc/pki/tls/certs/client.pem,/etc/pki/tls/private/client.key 
-U --pkinit-anchor=FILE:/tmp/kdc.pem -d

Actual results:
ipa-client-install fails with the error due to missing krb5-pkinit package.
'dnf module install -y idm:DL1/{client,dns}' is run the package is installed and ipa-client-install with pkinit passed.

Client uninstall complete.
Kerberos PKINIT authentication failed: CalledProcessError(Command ['/usr/bin/kinit', '-c', '/tmp/krbccjsckiuc2/ccache', '-X', 'X509_anchors=FILE:/tmp/kdc.pem', '-X', 'X509_user_identity=FILE:/etc/pki/tls/certs/client.pem,/etc/pki/tls/private/client.key', 'host/client.testrelm.test'] returned non-zero exit status 1: 'kinit: Generic preauthentication failure while getting initial credentials\n')
The ipa-client-install command failed. See /var/log/ipaclient-install.log for more information

Expected results:
ipa-client-install is successful.

Additional info:

--- Additional comment from Florence Blanc-Renaud on 2022-12-01 12:46:50 UTC ---

ipa.spec needs to add a dependency for the ipa-client package on krb5-pkinit-openssl (the client now supports enrollment using a certificate to authenticate, meaning it is using Pkinit feature).

--- Additional comment from Florence Blanc-Renaud on 2022-12-01 12:49:14 UTC ---

Upstream ticket:
https://pagure.io/freeipa/issue/9290

--- Additional comment from Florence Blanc-Renaud on 2022-12-01 13:16:42 UTC ---

Upstream PR: https://github.com/freeipa/freeipa/pull/6586

--- Additional comment from Florence Blanc-Renaud on 2022-12-02 10:35:23 UTC ---

Fixed upstream
master:
https://pagure.io/freeipa/c/827dc9afc9a82e14b03dc8bd42535ccf48712ec3

--- Additional comment from Florence Blanc-Renaud on 2022-12-02 13:47:52 UTC ---

Fixed upstream
ipa-4-9:
https://pagure.io/freeipa/c/d7c5fe5f1cc3b68492da27cf4ea25b611412c834

--- Additional comment from Florence Blanc-Renaud on 2022-12-02 14:28:11 UTC ---

Fixed upstream
ipa-4-10:
https://pagure.io/freeipa/c/2d0a0cc40fb8674f30ba62980b1953cef840009e

Comment 8 Mohammad Rizwan 2023-01-11 07:52:10 UTC
version:
ipa-server-4.10.1-2.el9.x86_64
ipa-client-4.10.1-2.el9.x86_64

============================= test session starts ==============================
platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: /home/cloud-user/.pytest_cache
metadata: {'Python': '3.9.16', 'Platform': 'Linux-5.14.0-230.el9.x86_64-x86_64-with-glibc2.34', 'Packages': {'pytest': '6.2.2', 'py': '1.10.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.7.0', 'multihost': '3.0', 'html': '3.1.1', 'sourceorder': '0.6.0'}}
rootdir: /usr/lib/python3.9/site-packages/ipatests
plugins: metadata-1.7.0, multihost-3.0, html-3.1.1, sourceorder-0.6.0
collecting ... collected 1 item

test_integration/test_pkinit_install.py::TestPkinitClientInstall::test_client_install_pkinit PASSED [100%]

=============================== warnings summary ===============================
../pytest_sourceorder.py:31
  /usr/lib/python3.9/site-packages/pytest_sourceorder.py:31: PytestUnknownMarkWarning: Unknown pytest.mark.source_order - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
    cls = pytest.mark.source_order(cls)

-- Docs: https://docs.pytest.org/en/stable/warnings.html
---------------- generated xml file: /home/cloud-user/junit.xml ----------------
----------- generated html file: file:///home/cloud-user/report.html -----------
=================== 1 passed, 1 warning in 754.60s (0:12:34) ===================

Automation passed, hence marking the bug as verified.

Comment 11 errata-xmlrpc 2023-05-09 07:33:20 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 (ipa 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-2023:2205