mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-client-install: output a warning if sudo is not present
Fixes: https://pagure.io/freeipa/issue/8530 Signed-off-by: François Cami <fcami@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Armando Neto <abiagion@redhat.com> Reviewed-By: Michal Polovka <mpolovka@redhat.com>
This commit is contained in:
committed by
Florence Blanc-Renaud
parent
fcfefe0a26
commit
a912bbbe0e
@@ -24,6 +24,7 @@ import re
|
||||
import SSSDConfig
|
||||
import shutil
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import textwrap
|
||||
@@ -2200,7 +2201,18 @@ def install_check(options):
|
||||
"authentication resources",
|
||||
rval=CLIENT_INSTALL_ERROR)
|
||||
|
||||
# when installing with '--no-sssd' option, check whether nss-ldap is
|
||||
# When installing without the "--no-sudo" option, check whether sudo is
|
||||
# available.
|
||||
if options.conf_sudo:
|
||||
try:
|
||||
subprocess.Popen(['sudo -V'])
|
||||
except FileNotFoundError:
|
||||
logger.info(
|
||||
"The sudo binary does not seem to be present on this "
|
||||
"system. Please consider installing sudo if required."
|
||||
)
|
||||
|
||||
# when installing with the '--no-sssd' option, check whether nss-ldap is
|
||||
# installed
|
||||
if not options.sssd:
|
||||
if not os.path.exists(paths.PAM_KRB5_SO):
|
||||
|
||||
Reference in New Issue
Block a user