Bug 1939371

Summary: ipa-client-install displays false message 'sudo binary does not seem to be present on this system'
Product: Red Hat Enterprise Linux 8 Reporter: Sudhir Menon <sumenon>
Component: ipaAssignee: François Cami <fcami>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.4CC: coughlan, fcami, lmiksik, pcech, rcritten, ssidhaye, tscherf, twoerner
Target Milestone: rcKeywords: Regression, TestCaseProvided
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.9.2-3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1940503 (view as bug list) Environment:
Last Closed: 2021-05-18 15:48:53 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:    
Bug Blocks: 1940503    

Description Sudhir Menon 2021-03-16 09:11:52 UTC
Description of problem: ipa-client-install displays false message 'sudo binary does not seem to be present on this system'

Version-Release number of selected component (if applicable):
ipa-client-4.9.2-2.module+el8.4.0+10227+076cd560.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install IPA client
2. Check the message displayed on the console

Actual results:
ipa-client-install displays the message 'The sudo binary does not seem to be present on this system. Please consider installing sudo if required.' 

[root@client ~]# which sudo
/bin/sudo
[root@client ~]# rpm -qf /bin/sudo
sudo-1.8.29-7.el8.x86_64

[root@client ~]# ipa-client-install
This program will set up IPA client.
Version 4.9.2
The sudo binary does not seem to be present on this system. Please consider installing sudo if required.
Discovery was successful!
Do you want to configure chrony with NTP server or pool address? [no]:  
Client hostname: client.testrelm.test
Realm: TESTRELM.TEST
DNS Domain: testrelm.test
IPA Server: master.testrelm.test
BaseDN: dc=testrelm,dc=test

Expected results: Fix the false message displayed on the console, since sudo binary is already present on the system.

Additional info:

Comment 1 François Cami 2021-03-16 12:09:13 UTC
PR: https://github.com/freeipa/freeipa/pull/5636

Comment 4 François Cami 2021-03-17 14:15:18 UTC
This bug comes from the (upstream) fix to:
https://bugzilla.redhat.com/show_bug.cgi?id=1859185
An incomplete test was added which did not cover all cases.
The two commits above fix the original code and add a test to cover all cases.

Comment 17 errata-xmlrpc 2021-05-18 15:48:53 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: idm:DL1 and idm:client 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-2021:1846