summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install
diff options
context:
space:
mode:
Diffstat (limited to 'ipa-client/ipa-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install18
1 files changed, 18 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install
index 7c329029..a38c8280 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -454,6 +454,18 @@ def uninstall(options, env):
root_logger.info("Redundant SSSD configuration file " +
"/etc/sssd/sssd.conf was moved to /etc/sssd/sssd.conf.deleted")
+ sssd = ipaservices.service('sssd')
+ try:
+ sssd.stop()
+ except CalledProcessError:
+ root_logger.warning("SSSD service could not be stopped")
+
+ try:
+ sssd.disable()
+ except CalledProcessError, e:
+ root_logger.warning(
+ "Failed to disable automatic startup of the SSSD daemon: %s", e)
+
if fstore.has_files():
root_logger.info("Restoring client configuration files")
ipaservices.restore_network_configuration(fstore, statestore)
@@ -1855,6 +1867,12 @@ def install(options, env, fstore, statestore):
except CalledProcessError:
root_logger.warning("SSSD service restart was unsuccessful.")
+ try:
+ sssd.enable()
+ except CalledProcessError, e:
+ root_logger.warning(
+ "Failed to enable automatic startup of the SSSD daemon: %s", e)
+
if not options.sssd:
#Modify pam to add pam_krb5 only when sssd is not in use
auth_config.reset()