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:
Jan Cholasta
2016-08-01 10:51:24 +02:00
parent 0c4a91348a
commit 984ae3858d
4 changed files with 7 additions and 1 deletions

View File

@@ -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: " +