Restart sssd after authconfig update

Recent versions of authconfig do not restart sssd if only the
--enablesssd and --enablesssdauth options are used. To make sure sssd is
running after ipa-server-install is run this patch add an unconditional
restart of sssd after authconfig is run during the installation.

Since there already is some logic trying to determine if sssd needs to
be restarted or stopped if freeipa in uninstalled no changes are needed
here.

Fixes https://fedorahosted.org/freeipa/ticket/3267
This commit is contained in:
Sumit Bose 2012-12-03 11:45:49 +01:00 committed by Rob Crittenden
parent c5e055ae00
commit a45125f78d

View File

@ -1822,6 +1822,12 @@ def install(options, env, fstore, statestore):
auth_config.add_option("update")
auth_config.execute()
root_logger.info("%s", message)
if options.sssd:
sssd = ipaservices.service('sssd')
try:
sssd.restart()
except CalledProcessError:
root_logger.warning("SSSD service restart was unsuccessful.")
if not options.sssd:
#Modify pam to add pam_krb5 only when sssd is not in use