summaryrefslogtreecommitdiffstats
path: root/base/server/python/pki/server/deployment/pkiparser.py
diff options
context:
space:
mode:
authorAde Lee <alee@redhat.com>2013-08-13 12:20:31 -0400
committerAde Lee <alee@redhat.com>2013-08-13 12:20:31 -0400
commite6b7428e5ae6fd6ed139db15b0426c35524d1a11 (patch)
treef046d9bc768ba16244ff2a95e88b37a5b6f755e6 /base/server/python/pki/server/deployment/pkiparser.py
parent74f60e95a9fd5984f81aeda492e157d1c9b6dedd (diff)
downloadpki-e6b7428e5ae6fd6ed139db15b0426c35524d1a11.tar.gz
pki-e6b7428e5ae6fd6ed139db15b0426c35524d1a11.tar.xz
pki-e6b7428e5ae6fd6ed139db15b0426c35524d1a11.zip
Initial code to configure a TPS in tomcat
This code allows pkispawn to configure a tps in tomcat. It does not include any config using the web UI panels.
Diffstat (limited to 'base/server/python/pki/server/deployment/pkiparser.py')
-rw-r--r--base/server/python/pki/server/deployment/pkiparser.py19
1 files changed, 18 insertions, 1 deletions
diff --git a/base/server/python/pki/server/deployment/pkiparser.py b/base/server/python/pki/server/deployment/pkiparser.py
index be502bc01..8f03e5f2d 100644
--- a/base/server/python/pki/server/deployment/pkiparser.py
+++ b/base/server/python/pki/server/deployment/pkiparser.py
@@ -634,7 +634,6 @@ class PKIConfigParser:
self.pki_master_dict['SYSTEM_LIBRARIES_SLOT'] = None
self.pki_master_dict['SYSTEM_USER_LIBRARIES_SLOT'] = None
self.pki_master_dict['TMP_DIR_SLOT'] = None
- self.pki_master_dict['TPS_DIR_SLOT'] = None
elif self.pki_master_dict['pki_subsystem'] in\
config.PKI_TOMCAT_SUBSYSTEMS:
self.pki_master_dict['INSTALL_TIME_SLOT'] = \
@@ -826,6 +825,24 @@ class PKIConfigParser:
"+TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA," + \
"+TLS_DHE_RSA_WITH_AES_128_CBC_SHA," + \
"+TLS_DHE_RSA_WITH_AES_256_CBC_SHA"
+
+ # tps parameters
+ self.pki_master_dict['TOKENDB_HOST_SLOT'] = \
+ self.pki_master_dict['pki_ds_hostname']
+
+ if config.str2bool(self.pki_master_dict['pki_ds_secure_connection']):
+ self.pki_master_dict['TOKENDB_PORT_SLOT'] = \
+ self.pki_master_dict['pki_ds_ldaps_port']
+ else:
+ self.pki_master_dict['TOKENDB_PORT_SLOT'] = \
+ self.pki_master_dict['pki_ds_ldap_port']
+
+ self.pki_master_dict['TOKENDB_ROOT_SLOT'] = \
+ self.pki_master_dict['pki_ds_base_dn']
+
+ self.pki_master_dict['TPS_DIR_SLOT'] = \
+ self.pki_master_dict['pki_source_subsystem_path']
+
if self.pki_master_dict['pki_subsystem'] == "CA":
self.pki_master_dict['PKI_ENABLE_RANDOM_SERIAL_NUMBERS'] = \
self.pki_master_dict\