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 1825829 - ipa-advise on a RHEL7 IdM server generate a configuration script for client having hardcoded python3
Summary: ipa-advise on a RHEL7 IdM server generate a configuration script for client h...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks: 1822123
TreeView+ depends on / blocked
 
Reported: 2020-04-20 10:51 UTC by Mohammad Rizwan
Modified: 2020-09-29 20:00 UTC (History)
5 users (show)

Fixed In Version: ipa-4.6.8-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:59:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
report.html (296.64 KB, text/html)
2020-05-18 12:43 UTC, Mohammad Rizwan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:3936 0 None None None 2020-09-29 20:00:08 UTC

Description Mohammad Rizwan 2020-04-20 10:51:11 UTC
Description of problem:
ipa-advise on a RHEL7 IdM server generate a configuration script for client having hardcoded python3

As a result, if client machine does not have python3 installed, it gives error like:

/root/config-client-for-smart-card-auth.sh: line 90: python3: command not found

Version-Release number of selected component (if applicable):
ipa-server-4.6.8-2.el7.x86_64

How reproducible:
always.

Steps to Reproduce:
1. Install RHEL7.8 IPA server and configure to user smart card
2. Install RHEL8 client against RHEL7 server and configure to user smart card[1]
3. The bash script should run successfully on RHEL8 client 


[1] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_identity_management/configuring-idm-for-smart-card-auth_configuring-and-managing-idm

Actual results:
/root/config-client-for-smart-card-auth.sh: line 90: python3: command not found

Expected results:
No error

Additional info:
https://github.com/freeipa/freeipa/blob/ipa-4-6/ipaserver/advise/plugins/smart_card_auth.py#L353

Comment 2 Mohammad Rizwan 2020-04-20 11:04:42 UTC
Correction in step1.

1. Install RHEL7.9 IPA server and configure to user smart card

Comment 4 Florence Blanc-Renaud 2020-04-21 12:52:27 UTC
The script should be able to run without issue on rhel7, rhel8, or any fedora version.
- on rhel7, there is no /usr/bin/authselect, meaning the line with python3 -c ... doesn't get called -> OK
- on fedora without authselect, the line doesn't get called -> OK
- on fedora28+ with authselect, ipa-4-7 is used and this version enforces python3 -> OK
- on rhel8, python3 should not be used and /usr/libexec/platform-python should be used instead

Comment 5 Florence Blanc-Renaud 2020-05-05 08:04:49 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/8311

Comment 6 Christian Heimes 2020-05-05 09:50:35 UTC
Fixed upstream
master:
https://pagure.io/freeipa/c/edcfba6010c0b6a81841ca6e1e478835ce76191b

Comment 10 Mohammad Rizwan 2020-05-18 12:43:01 UTC
Created attachment 1689580 [details]
report.html

Comment 11 Mohammad Rizwan 2020-05-18 12:43:50 UTC
Automation passed. Hence marking the bug as verified.

Comment 13 errata-xmlrpc 2020-09-29 19:59:37 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 (Moderate: ipa security, 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/RHSA-2020:3936


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