diff options
| author | Endi Sukma Dewata <edewata@redhat.com> | 2013-05-20 22:59:15 -0400 |
|---|---|---|
| committer | Endi Sukma Dewata <edewata@redhat.com> | 2013-05-30 12:00:36 -0400 |
| commit | d78d7442be02b6b83d9dad3fc089fa9f9d8ceb48 (patch) | |
| tree | 27816db3b38935f4e4c05bdfd5f347fd7ec4669e /base/setup | |
| parent | 1d53a9dd567f395bcaf65376be9f6c3319ba51ce (diff) | |
Renamed SERVER_NAME and PKI_MACHINE_NAME into PKI_HOSTNAME.
The SERVER_NAME and PKI_MACHINE_NAME variables have been renamed
into PKI_HOSTNAME for consistency.
Diffstat (limited to 'base/setup')
| -rwxr-xr-x | base/setup/pki-setup-proxy | 2 | ||||
| -rwxr-xr-x | base/setup/pkicreate | 7 | ||||
| -rw-r--r-- | base/setup/scripts/functions | 22 |
3 files changed, 15 insertions, 16 deletions
diff --git a/base/setup/pki-setup-proxy b/base/setup/pki-setup-proxy index 0222eab46..c3bcde3b9 100755 --- a/base/setup/pki-setup-proxy +++ b/base/setup/pki-setup-proxy @@ -343,7 +343,7 @@ sub update_proxy_conf my $data = read_file $template_file; my $host = hostname; - $data =~ s/\[PKI_MACHINE_NAME\]/$host/g; + $data =~ s/\[PKI_HOSTNAME\]/$host/g; $data =~ s/\[PKI_AJP_PORT\]/$ajp_port/g; write_file($server_file, $data); diff --git a/base/setup/pkicreate b/base/setup/pkicreate index acf32c081..76a7d5afa 100755 --- a/base/setup/pkicreate +++ b/base/setup/pkicreate @@ -268,7 +268,6 @@ my $OBJ_EXT = "OBJ_EXT"; my $PROCESS_ID = "PROCESS_ID"; my $NON_CLIENTAUTH_SECURE_PORT = "NON_CLIENTAUTH_SECURE_PORT"; my $SECURITY_LIBRARIES = "SECURITY_LIBRARIES"; -my $SERVER_NAME = "SERVER_NAME"; my $SYSTEM_LIBRARIES = "SYSTEM_LIBRARIES"; my $SYSTEM_USER_LIBRARIES = "SYSTEM_USER_LIBRARIES"; my $TMP_DIR = "TMP_DIR"; @@ -289,6 +288,7 @@ my $PKI_REGISTRY_FILE_SLOT = "PKI_REGISTRY_FILE"; my $PKI_SECURE_PORT_SLOT = "PKI_SECURE_PORT"; my $PKI_UNSECURE_PORT_SLOT = "PKI_UNSECURE_PORT"; my $PKI_INSTANCE_PATH_SLOT = "PKI_INSTANCE_PATH"; +my $PKI_HOSTNAME_SLOT = "PKI_HOSTNAME"; # Template slot constants (CA, KRA, OCSP, TKS) my $INSTALL_TIME = "INSTALL_TIME"; @@ -297,7 +297,6 @@ my $PKI_CERT_DB_PASSWORD_SLOT = "PKI_CERT_DB_PASSWORD"; my $PKI_CFG_PATH_NAME_SLOT = "PKI_CFG_PATH_NAME"; my $PKI_GROUP_SLOT = "PKI_GROUP"; my $PKI_INSTANCE_ROOT_SLOT = "PKI_INSTANCE_ROOT"; -my $PKI_MACHINE_NAME_SLOT = "PKI_MACHINE_NAME"; my $PKI_RANDOM_NUMBER_SLOT = "PKI_RANDOM_NUMBER"; my $PKI_EE_SECURE_PORT_SLOT = "PKI_EE_SECURE_PORT"; my $PKI_EE_SECURE_CLIENT_AUTH_PORT_SLOT = "PKI_EE_SECURE_CLIENT_AUTH_PORT"; @@ -2274,7 +2273,7 @@ sub process_pki_templates $slot_hash{$PKI_SECURE_PORT_SLOT} = $secure_port; $slot_hash{$NON_CLIENTAUTH_SECURE_PORT} = $non_clientauth_secure_port; $slot_hash{$SECURITY_LIBRARIES} = $default_security_libraries; - $slot_hash{$SERVER_NAME} = $host; + $slot_hash{$PKI_HOSTNAME_SLOT} = $host; $slot_hash{$PKI_INSTANCE_PATH_SLOT}= $pki_instance_path; $slot_hash{$SYSTEM_LIBRARIES} = $default_system_libraries; $slot_hash{$SYSTEM_USER_LIBRARIES} = $default_system_user_libraries; @@ -2320,7 +2319,7 @@ LoadModule nss_module /opt/fortitude/modules.local/libmodnss.so $slot_hash{$INSTALL_TIME} = localtime; $slot_hash{$PKI_CERT_DB_PASSWORD_SLOT} = $db_password; $slot_hash{$PKI_CFG_PATH_NAME_SLOT} = $pki_cfg_instance_file_path; - $slot_hash{$PKI_MACHINE_NAME_SLOT} = $host; + $slot_hash{$PKI_HOSTNAME_SLOT} = $host; $slot_hash{$PKI_RANDOM_NUMBER_SLOT} = $random; $slot_hash{$PKI_SERVER_XML_CONF} = $server_xml_instance_file_path; $slot_hash{$PKI_UNSECURE_PORT_SLOT} = $unsecure_port; diff --git a/base/setup/scripts/functions b/base/setup/scripts/functions index 82988fc10..ff9594621 100644 --- a/base/setup/scripts/functions +++ b/base/setup/scripts/functions @@ -349,9 +349,9 @@ get_pki_status_definitions_ra() for port in `sed -n 's/^[ \t]*Listen[ \t][ \t]*\([^ \t][^ \t]*\)/\1/p' ${PKI_HTTPD_CONF}`; do PKI_UNSECURE_PORT=$port if [ $total_ports -eq 0 ]; then - echo " Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}" + echo " Unsecure Port = http://${PKI_HOSTNAME}:${PKI_UNSECURE_PORT}" else - echo "ERROR: extra Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}" + echo "ERROR: extra Unsecure Port = http://${PKI_HOSTNAME}:${PKI_UNSECURE_PORT}" fi total_ports=`expr ${total_ports} + 1` @@ -362,11 +362,11 @@ get_pki_status_definitions_ra() PKI_UNSECURE_PORT=$port if [ $total_ports -eq 1 ]; then CLIENTAUTH_PORT=$port - echo " Secure Clientauth Port = https://${PKI_SERVER_NAME}:${CLIENTAUTH_PORT}" + echo " Secure Clientauth Port = https://${PKI_HOSTNAME}:${CLIENTAUTH_PORT}" fi if [ $total_ports -eq 2 ]; then NON_CLIENTAUTH_PORT=$port - echo " Secure Non-Clientauth Port = https://${PKI_SERVER_NAME}:${NON_CLIENTAUTH_PORT}" + echo " Secure Non-Clientauth Port = https://${PKI_HOSTNAME}:${NON_CLIENTAUTH_PORT}" fi total_ports=`expr ${total_ports} + 1` @@ -399,12 +399,12 @@ get_pki_status_definitions_tps() for port in `sed -n 's/^[ \t]*Listen[ \t][ \t]*\([^ \t][^ \t]*\)/\1/p' ${PKI_HTTPD_CONF}`; do PKI_UNSECURE_PORT=$port if [ $total_ports -eq 0 ]; then - echo " Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}/cgi-bin/so/enroll.cgi" + echo " Unsecure Port = http://${PKI_HOSTNAME}:${PKI_UNSECURE_PORT}/cgi-bin/so/enroll.cgi" echo " (ESC Security Officer Enrollment)" - echo " Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}/cgi-bin/home/index.cgi" + echo " Unsecure Port = http://${PKI_HOSTNAME}:${PKI_UNSECURE_PORT}/cgi-bin/home/index.cgi" echo " (ESC Phone Home)" else - echo "ERROR: extra Unsecure Port = http://${PKI_SERVER_NAME}:${PKI_UNSECURE_PORT}" + echo "ERROR: extra Unsecure Port = http://${PKI_HOSTNAME}:${PKI_UNSECURE_PORT}" fi total_ports=`expr ${total_ports} + 1` @@ -415,16 +415,16 @@ get_pki_status_definitions_tps() PKI_UNSECURE_PORT=$port if [ $total_ports -eq 1 ]; then CLIENTAUTH_PORT=$port - echo " Secure Clientauth Port = https://${PKI_SERVER_NAME}:${CLIENTAUTH_PORT}/cgi-bin/sow/welcome.cgi" + echo " Secure Clientauth Port = https://${PKI_HOSTNAME}:${CLIENTAUTH_PORT}/cgi-bin/sow/welcome.cgi" echo " (ESC Security Officer Workstation)" - echo " Secure Clientauth Port = https://${PKI_SERVER_NAME}:${CLIENTAUTH_PORT}/tus" + echo " Secure Clientauth Port = https://${PKI_HOSTNAME}:${CLIENTAUTH_PORT}/tus" echo " (TPS Roles - Operator/Administrator/Agent)" fi if [ $total_ports -eq 2 ]; then NON_CLIENTAUTH_PORT=$port - echo " Secure Non-Clientauth Port = https://${PKI_SERVER_NAME}:${NON_CLIENTAUTH_PORT}/cgi-bin/so/enroll.cgi" + echo " Secure Non-Clientauth Port = https://${PKI_HOSTNAME}:${NON_CLIENTAUTH_PORT}/cgi-bin/so/enroll.cgi" echo " (ESC Security Officer Enrollment)" - echo " Secure Non-Clientauth Port = https://${PKI_SERVER_NAME}:${NON_CLIENTAUTH_PORT}/cgi-bin/home/index.cgi" + echo " Secure Non-Clientauth Port = https://${PKI_HOSTNAME}:${NON_CLIENTAUTH_PORT}/cgi-bin/home/index.cgi" echo " (ESC Phone Home)" fi total_ports=`expr ${total_ports} + 1` |
