mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
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:
parent
c5e055ae00
commit
a45125f78d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user