summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipaserver/krbinstance.py
diff options
context:
space:
mode:
authorrcritten@redhat.com <rcritten@redhat.com>2007-08-06 10:51:23 -0400
committerrcritten@redhat.com <rcritten@redhat.com>2007-08-06 10:51:23 -0400
commitb9b06a2a607ddc7a98ac78b46e63304b714f3cce (patch)
treedc8c625c3e10aa964d1d1187ebcabc9a67b396f1 /ipa-server/ipaserver/krbinstance.py
parent993f76fe6035cf59cceb88f3611fc53680738007 (diff)
downloadfreeipa.git-b9b06a2a607ddc7a98ac78b46e63304b714f3cce.tar.gz
freeipa.git-b9b06a2a607ddc7a98ac78b46e63304b714f3cce.tar.xz
freeipa.git-b9b06a2a607ddc7a98ac78b46e63304b714f3cce.zip
Generate /etc/httpd/conf.d/ipa.conf from a template so the realm can
be set during installation
Diffstat (limited to 'ipa-server/ipaserver/krbinstance.py')
-rw-r--r--ipa-server/ipaserver/krbinstance.py8
1 files changed, 8 insertions, 0 deletions
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()