summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/httpinstance.py
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-08-16 19:34:04 +0200
committerRob Crittenden <rcritten@redhat.com>2011-08-18 23:24:38 -0400
commit159c13a550f1943de47592615a43576c9dbc2dbe (patch)
treeff5baf7ccd4812f2a7a18faebebafa237e0d47e0 /ipaserver/install/httpinstance.py
parent2e9d614cabfb556aedb6ca805593dfcf3fa811cd (diff)
downloadfreeipa-159c13a550f1943de47592615a43576c9dbc2dbe.zip
freeipa-159c13a550f1943de47592615a43576c9dbc2dbe.tar.gz
freeipa-159c13a550f1943de47592615a43576c9dbc2dbe.tar.xz
Add option to install without the automatic redirect to the Web UI.
ticket 1570
Diffstat (limited to 'ipaserver/install/httpinstance.py')
-rw-r--r--ipaserver/install/httpinstance.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipaserver/install/httpinstance.py b/ipaserver/install/httpinstance.py
index d2eb27c..fe5f7aa 100644
--- a/ipaserver/install/httpinstance.py
+++ b/ipaserver/install/httpinstance.py
@@ -55,7 +55,7 @@ class HTTPInstance(service.Service):
else:
self.fstore = sysrestore.FileStore('/var/lib/ipa/sysrestore')
- def create_instance(self, realm, fqdn, domain_name, dm_password=None, autoconfig=True, pkcs12_info=None, self_signed_ca=False, subject_base=None):
+ def create_instance(self, realm, fqdn, domain_name, dm_password=None, autoconfig=True, pkcs12_info=None, self_signed_ca=False, subject_base=None, auto_redirect=True):
self.fqdn = fqdn
self.realm = realm
self.domain = domain_name
@@ -66,7 +66,7 @@ class HTTPInstance(service.Service):
self.principal = "HTTP/%s@%s" % (self.fqdn, self.realm)
self.dercert = None
self.subject_base = subject_base
- self.sub_dict = { "REALM" : realm, "FQDN": fqdn, "DOMAIN" : self.domain }
+ self.sub_dict = {"REALM": realm, "FQDN": fqdn, "DOMAIN": self.domain, "AUTOREDIR": '' if auto_redirect else '#'}
# get a connection to the DS
self.ldap_connect()