mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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>
This commit is contained in:
@@ -749,6 +749,12 @@ class ADTRUSTInstance(service.Service):
|
|||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def __restart_smb(self):
|
||||||
|
try:
|
||||||
|
services.knownservices.smb.restart()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
def __enable(self):
|
def __enable(self):
|
||||||
self.backup_state("enabled", self.is_enabled())
|
self.backup_state("enabled", self.is_enabled())
|
||||||
# We do not let the system start IPA components on its own,
|
# We do not let the system start IPA components on its own,
|
||||||
@@ -880,6 +886,7 @@ class ADTRUSTInstance(service.Service):
|
|||||||
if self.add_sids:
|
if self.add_sids:
|
||||||
self.step("adding SIDs to existing users and groups",
|
self.step("adding SIDs to existing users and groups",
|
||||||
self.__add_sids)
|
self.__add_sids)
|
||||||
|
self.step("restarting smbd", self.__restart_smb)
|
||||||
|
|
||||||
self.start_creation(show_service_name=False)
|
self.start_creation(show_service_name=False)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user