mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
client: remove hard dependency on pam_krb5
If ipa-client-install is executed with --no-sssd, check if pam_krb5 is available before proceeding with the install. https://fedorahosted.org/freeipa/ticket/5557 Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
@@ -2289,6 +2289,10 @@ def install(options, env, fstore, statestore):
|
||||
|
||||
# when installing with '--no-sssd' option, check whether nss-ldap is installed
|
||||
if not options.sssd:
|
||||
if not os.path.exists(paths.PAM_KRB5_SO):
|
||||
root_logger.error("The pam_krb5 package must be installed")
|
||||
return CLIENT_INSTALL_ERROR
|
||||
|
||||
(nssldap_installed, nosssd_files) = nssldap_exists()
|
||||
if not nssldap_installed:
|
||||
root_logger.error("One of these packages must be installed: " +
|
||||
|
||||
Reference in New Issue
Block a user