[Freeipa-devel] [PATCH] 88 ipa-adtrust-install: restart httpd to pick up new plugins

Sumit Bose sbose at redhat.com
Wed Oct 24 10:19:54 UTC 2012


Hi,

this patches fixes https://fedorahosted.org/freeipa/ticket/3185 by
restarting httpd as one of the last steps of ipa-adtrust-install.

bye,
Sumit
-------------- next part --------------
From f5595145fa2c6732d393980462e9046ec1f24da7 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Wed, 24 Oct 2012 12:14:51 +0200
Subject: [PATCH] ipa-adtrust-install: restart httpd to pick up new plugins

If ipa-server-trust-ad is installed after ipa server is installed and
configured, httpd needs a restart for additional python modules to be
loaded into httpd on IPA initialization.

Fixes https://fedorahosted.org/freeipa/ticket/3185
---
 ipaserver/install/adtrustinstance.py | 8 ++++++++
 1 Datei ge?ndert, 8 Zeilen hinzugef?gt(+)

diff --git a/ipaserver/install/adtrustinstance.py b/ipaserver/install/adtrustinstance.py
index c27fac99cf624ca6460ce84e76be52db38f11a5b..0d18d2369d9496faef1a557e35fb7bc57bc04aae 100644
--- a/ipaserver/install/adtrustinstance.py
+++ b/ipaserver/install/adtrustinstance.py
@@ -625,6 +625,12 @@ class ADTRUSTInstance(service.Service):
         except:
             pass
 
+    def __restart_httpd(self):
+        try:
+            ipaservices.knownservices.httpd.restart()
+        except:
+            pass
+
     def __enable(self):
         self.backup_state("enabled", self.is_enabled())
         # We do not let the system start IPA components on its own,
@@ -748,6 +754,8 @@ class ADTRUSTInstance(service.Service):
                   self.__add_dns_service_records)
         self.step("restarting Directory Server to take MS PAC and LDAP plugins changes into account", \
                   self.__restart_dirsrv)
+        self.step("restarting HTTP Service to pick up new plugins",
+                  self.__restart_httpd)
         self.step("adding fallback group", self.__add_fallback_group)
         self.step("setting SELinux booleans", \
                   self.__configure_selinux_for_smbd)
-- 
1.7.11.4



More information about the Freeipa-devel mailing list