From b9b06a2a607ddc7a98ac78b46e63304b714f3cce Mon Sep 17 00:00:00 2001 From: "rcritten@redhat.com" Date: Mon, 6 Aug 2007 10:51:23 -0400 Subject: Generate /etc/httpd/conf.d/ipa.conf from a template so the realm can be set during installation --- ipa-server/ipaserver/krbinstance.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ipa-server/ipaserver/krbinstance.py') diff --git a/ipa-server/ipaserver/krbinstance.py b/ipa-server/ipaserver/krbinstance.py index f4fe6001..84f8ebf2 100644 --- a/ipa-server/ipaserver/krbinstance.py +++ b/ipa-server/ipaserver/krbinstance.py @@ -79,6 +79,8 @@ class KrbInstance: self.__configure_ldap() + self.__configure_http() + self.__create_instance() self.__create_ds_keytab() @@ -193,3 +195,9 @@ class KrbInstance: time.sleep(1) pent = pwd.getpwnam("apache") os.chown("/etc/httpd/conf/ipa.keytab", pent.pw_uid, pent.pw_gid) + + def __configure_http(self): + http_txt = template_file(SHARE_DIR + "ipa.conf", self.sub_dict) + http_fd = open("/etc/httpd/conf.d/ipa.conf", "w") + http_fd.write(http_txt) + http_fd.close() -- cgit