NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
3-14
The Installation-Specific servlet.config File
obtain the location of the JAAS configuration file. For more information on JAAS,
see http://java.sun.com/javase/6/docs/guide/security/jaas/JAASRefGuide.html.
Example 3-9 shows the default value of the JAAS_CONFIG_FILE variable.
NSJSP_JAAS_CONFIG
The value of the NSJSP_JAAS_CONFIG variable is the Java command-line
argument that is used to turn on the JAAS module. This enables the authentication
and authorization procedure to be handled as per the definitions in the JAAS config
file that is specified by the variable JAAS_CONFIG_FILE. For more information on
JAAS configuration, see Realms on page 7-7.
Example 3-10 shows the default value of the NSJSP_JAAS_CONFIG variable.
JAVA_HOME
The JAVA_HOME variable is set to the location where NonStop Server for Java
(NSJ) is installed. The value of the JAVA_HOME variable is set when the setup
script is run. After installing NSJSP, do not modify the value of this variable unless
the NSJ installation is moved to a different directory.
Example 3-9. The Default Value of the JAAS_CONFIG_FILE Variable
#
# NSJSP JAAS NonStopLoginModule configuration file.
#
set env(JAAS_CONFIG_FILE) $env(NSJSP_HOME)/conf/iTP_jaas.config
Example 3-10. The Default Value of the NSJSP_JAAS_CONFIG Variable
#
# By default, the JVM is run without a JAAS configuration file.
#
set NSJSP_JAAS_CONFIG -Dnsjsp.jaas.login.config=none
#
# If you wish to use the NSJSP JAAS NonStopLoginModule, uncomment
the
# next statement ("set NSJSP_JAAS_CONFIG ...").
#
# Note: the "double" equalto signs "==" is not a typo!! This informs
the # JVM to use this file exclusively and that all others are to be
ignored.
#
# set NSJSP_JAAS_CONFIG
# -Djava.security.auth.login.config==$env(JAAS_CONFIG_FILE)










