From 168c6645b59136c687cad593e1eb36d477ed819f Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Jun 18 2014 13:50:43 +0000 Subject: Stop sssd if disabling it. --- diff --git a/authinfo.py b/authinfo.py index f8610cd..b8c3519 100644 --- a/authinfo.py +++ b/authinfo.py @@ -4380,15 +4380,15 @@ class AuthInfo: "winbind", nostart) def toggleSSSDService(self, nostart): - explicitenable = ((self.enableSSSD and self.enableSSSDAuth) or (self.enableSSSD and os.path.exists(PATH_SSSD_CONFIG)) or (self.enableSSSDAuth and os.path.exists(PATH_SSSD_CONFIG))) - toggleSplatbindService(self.implicitSSSD or self.implicitSSSDAuth or - self.enableIPAv2 or explicitenable, + enable = (self.implicitSSSD or self.implicitSSSDAuth or + self.enableIPAv2 or explicitenable) + toggleSplatbindService(enable, PATH_SSSD, - "sssd", nostart or not (self.implicitSSSD or self.implicitSSSDAuth - or self.enableIPAv2)) + "sssd", nostart or (enable and not (self.implicitSSSD or + self.implicitSSSDAuth or self.enableIPAv2))) def toggleOddjobService(self, nostart): if self.enableMkHomeDir and os.access("%s/pam_%s.so"