# $Id: tta_webserver,v 1.2 2015-03-31 12:24:26 pc161604 Exp $
# Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
# Messages for webserver script

tta_webserver_desc="  webserver          Controls the $PRODUCT_SHORT_NAME Web Server"

lf_webserver_usage="
Usage: tarantella webserver <command> [<command-specific args>]

  Available commands:

  add_trusted_user      Adds a trusted user
  delete_trusted_user   Deletes a trusted user
  list_trusted_users    Lists trusted users

  Use \"tarantella webserver <command> --help\" to get help on a command.
"

l_ok="...OK"
l_failed="...failed"

l_tomcat_stop="Stopping Tomcat servlet container..."
l_tomcat_start="Starting Tomcat servlet container..."

l_apache_stop="Stopping Apache web server..."
l_apache_start_http="Starting Apache web server in http mode..."
l_apache_start_https="Starting Apache web server in https mode..."
l_apache_restart="Restarting Apache web server..."
l_apache_httpportinuse="HTTP port = %s [already in use]\n"
l_apache_httpsportinuse="HTTPS port = %s [already in use]\n"
l_apache_restportmissing="No REST port available."
l_apache_httpports="\
$PRODUCT_SHORT_NAME includes a web server. You need to choose the TCP port
on which the web server listens for HTTP(S) connections.

You must configure an unused TCP port.
"

p_tws_sec="\
The $PRODUCT_SHORT_NAME Web Server was last started with the --ssl option
to allow HTTPS connections. The --ssl option hasn't been supplied this time.

Are you sure you want to proceed?

 Y - Yes, start the $PRODUCT_SHORT_NAME Web Server without HTTPS connections
 N - No, cancel this command
"

q_tws_sec="Start without HTTPS connections"
l_tws_sec_no="Command canceled."

# _shortusage used with syntax etc error in command
# _usage used when --help option supplied

l_stop_shortusage="\
Usage: tarantella webserver stop [ --http ] [ --servlet ]
 - Stops the $PRODUCT_SHORT_NAME Web Server.
 - Use \"tarantella webserver stop --help\" for detailed information."

l_stop_usage="
tarantella webserver stop [ --http ] [ --servlet ]

  Stops services provided by the $PRODUCT_SHORT_NAME Web Server.
  The $PRODUCT_SHORT_NAME server is not affected.

  --http      Stops HTTP and HTTPS (if configured) services (Apache).
  --servlet   Stops Java Servlet/JavaServer Pages services (Tomcat).

  With no arguments, this command stops both services.
"

l_start_shortusage="\
Usage: tarantella webserver start [ --http ] [ --ssl ] [ --servlet ] [ --quiet ]
 - Starts the $PRODUCT_SHORT_NAME Web Server.
 - Use \"tarantella webserver start --help\" for detailed information."

l_start_usage="
tarantella webserver start [ --http ] [ --ssl ] [ --servlet ] [ --quiet ]

  Starts services provided by the $PRODUCT_SHORT_NAME Web Server.
  The $PRODUCT_SHORT_NAME server is not affected.

  --http      Starts HTTP services (Apache).
  --ssl       Enables SSL connections using HTTPS
              (requires a valid X.509 certificate for the web server).
  --servlet   Starts Java Servlet/JavaServer Pages services (Tomcat).
  --quiet     Non-interactive mode (don't ask any questions).

  If you omit --http and --servlet, this command starts both HTTP and
  servlet services. You must supply --ssl to enable HTTPS connections.
"

l_restart_shortusage="\
Usage: tarantella webserver restart [ --http ] [ --ssl ] [ --servlet ] [ --quiet ]
 - Restarts the $PRODUCT_SHORT_NAME Web Server.
 - Use \"tarantella webserver restart --help\" for detailed information."

l_restart_usage="
tarantella webserver restart [ --http ] [ --ssl ] [ --servlet ] [ --quiet ]

  Stops and then restarts services provided by the $PRODUCT_SHORT_NAME
  Web Server. The $PRODUCT_SHORT_NAME server is not affected.

  --http      Restarts HTTP services (Apache).
  --ssl       Enables SSL connections using HTTPS
              (requires a valid X.509 certificate for the web server).
  --servlet   Restarts Java Servlet/JavaServer Pages services (Tomcat).
  --quiet     Non-interactive mode (don't ask any questions).

  If you omit --http and --servlet, this command restarts both HTTP and
  servlet services. You must supply --ssl to enable HTTPS connections.
"

l_add_trusted_user_shortusage="\
Usage: tarantella webserver add_trusted_user username
 - Adds username as a trusted user"
l_add_trusted_user_usage="${l_add_trusted_user_shortusage}"

l_delete_trusted_user_shortusage="\
Usage: tarantella webserver delete_trusted_user username
 - Deletes username as a trusted user"
l_delete_trusted_user_usage="${l_delete_trusted_user_shortusage}"

l_list_trusted_user_shortusage="\
Usage: tarantella webserver list_trusted_users
 - Lists the currently configured trusted users"
l_list_trusted_user_usage="${l_list_trusted_user_shortusage}"

l_already_trusted=" is already a trusted user"
l_not_trusted=" is not a trusted user"
l_password1="Password for "
l_password2=":"
l_password_again="
Re-enter password:"
l_password_too_short="
Password must contain at least 6 characters"
l_password_nonmatch="
They don't match - try again"
l_todo1="
You must restart the $PRODUCT_SHORT_NAME Web Server to activate the new user."
l_todo2="
You must also enable the Third Party Login Authority by running the command:

  tarantella config edit --"
l_todo3=" 1"
l_webgateconfig_error="ERROR:"
l_webgate_missingbinaries="The required WebGate binaries are missing."
l_webgate_missingconf="The configuration file, webgate.conf, is missing."
l_webgate_missinginstance="Cannot find the WebGate instance directory."
l_webgate_missinginstall="Cannot find the WebGate install directory."
l_webgate_missingobclient="The file, ObAccessClient.xml, is missing."
l_webgate_missingcwallet="The file, cwallet.sso, is missing."
l_webgate_missingpassword="The file, password.xml, is missing."
l_webgate_missingkey="The file, aaa_key.pem, is missing."
l_webgate_missingcert="The file, aaa_cert.pem, is missing." 
l_webgate_missingchain="The file, aaa_chain.pem, is missing."
l_webgate_notstarted="Single sign-on will not be available."
l_sso_available="Single sign-on is available."
