diff options
author | Tomas Babej <tbabej@redhat.com> | 2015-10-27 16:05:35 +0100 |
---|---|---|
committer | Tomas Babej <tbabej@redhat.com> | 2015-11-10 16:52:56 +0100 |
commit | fa3ed16760f996cbb13dd8c9bdeb9c8e5e8a4899 (patch) | |
tree | ccbf519e4ee48b3c5415e4d865e7d7e99f65f494 /ipaserver/install/adtrustinstance.py | |
parent | afd253b3494b791601d66c8e9836fcfa3d11dbd7 (diff) | |
download | freeipa-fa3ed16760f996cbb13dd8c9bdeb9c8e5e8a4899.tar.gz freeipa-fa3ed16760f996cbb13dd8c9bdeb9c8e5e8a4899.tar.xz freeipa-fa3ed16760f996cbb13dd8c9bdeb9c8e5e8a4899.zip |
adtrustinstance: Restart samba service at the end of adtrust-install
Errors related to establishing trust can occur if samba service is not
restarted after ipa-adtrust-install has been run. Restart the service at
the end of the installer to avoid such issues.
https://fedorahosted.org/freeipa/ticket/5134
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipaserver/install/adtrustinstance.py')
-rw-r--r-- | ipaserver/install/adtrustinstance.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py index 721cc23e7..ab8783b49 100644 --- a/ipaserver/install/adtrustinstance.py +++ b/ipaserver/install/adtrustinstance.py @@ -749,6 +749,12 @@ class ADTRUSTInstance(service.Service): except: pass + def __restart_smb(self): + try: + services.knownservices.smb.restart() + except Exception: + pass + def __enable(self): self.backup_state("enabled", self.is_enabled()) # We do not let the system start IPA components on its own, @@ -880,6 +886,7 @@ class ADTRUSTInstance(service.Service): if self.add_sids: self.step("adding SIDs to existing users and groups", self.__add_sids) + self.step("restarting smbd", self.__restart_smb) self.start_creation(show_service_name=False) |