diff options
author | Sumit Bose <sbose@redhat.com> | 2012-12-03 11:45:49 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2012-12-03 15:34:23 -0500 |
commit | a45125f78db5d95b3d0dd000cf6af0ef4444f9a0 (patch) | |
tree | 48023c9e3b9a1538aa45c6027d6977bc9474d128 /ipa-client | |
parent | c5e055ae00a2f4a41df4bdcbc95e81d771a4f8cf (diff) | |
download | freeipa-a45125f78db5d95b3d0dd000cf6af0ef4444f9a0.tar.gz freeipa-a45125f78db5d95b3d0dd000cf6af0ef4444f9a0.tar.xz freeipa-a45125f78db5d95b3d0dd000cf6af0ef4444f9a0.zip |
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
Diffstat (limited to 'ipa-client')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 190efb183..612bdc658 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -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 |