![]() ![]() ![]() ![]() ![]() ![]() |
This section describes how to configure the WLS, WLS 8.1, Java, and Web Service SSMs using the ConfigTool.
<domain-home>/bin/startWebLogic.sh|bat
:-XX:PermSize=128m -XX:MaxPermSize=256m
For the WLS, WLS 8.1, Web Service, and Java SSMs, this version of ALES provides a utility called the ConfigTool that automates a number of steps that must otherwise be performed manually. In particular, the ConfigTool defines the SSM’s initial configuration as well as a set of basic policies that can be added to or modified as required to secure the application.
Note: | Since the WLS SSM uses WebLogic security providers, the ConfigTool adds these to the WebLogic server. They must be managed using the WebLogic console. |
It is recommended that you generate an initial configuration with the ConfigTool and then use the Administration Console and Entitlements Management Tool to update or modify the policies as needed to secure the application.
When the ConfigTool runs, the information added depends on template files provided when the SSM is installed. These files are located in the SSM’s config
directory. For example, the template files used for configuring the Java SSM are located in C:\bea\ales30-ssm\java-ssm\config\java-ssm\ales-policies
.
The data added by the ConfigTool depends on the type of SSM and is based on out-of-box policies that are provided when the SSM is installed. Table 4-1 provides a general description of the type of information added.
Before running the ConfigTool, a properties file must be updated to include names and other information you want the tool to use when adding the initial configuration and policies.
The tool has check (validate) and process options. In check mode, the tool verifies that the SSM instance can be created without error. In process mode, the tool actually creates the SSM instance and configuration. It is recommended that you first run with the check option to make sure that there are no errors.
The ConfigTool performs a number of steps that are not observable during execution. This section provides a detailed description of ConfigTool operations. These operations are performed in three stages:
Collects and Builds Configuration Data
Performs Preconfiguration Checks
The following steps are performed:
1. Reads the configuration information specified in the properties file. Confirms
any default values that were not specified and prompts for any required data.
2. Builds a properties object with all the information.
3. Copies the policy files from the SSM’s /config/<SSM_TYPE>/ales-policies
into
a temporary directory.
4. Substitutes all "@...@" values in the temp directory with data in the properties object.
The following steps are performed. If any check is not verified, it aborts and exit.
1. If custom.ant.script is enabled, it verifies the existence of the script file.
2. Verifies that enrollment was performed.
3. Verifies that asipassword was run
4. Verifies that the SSM instance does not exist.
5. Verifies that the ARME port is free.
6. Check connectivity to BLM server process on the Admin Server.
7. Check JDBC parameters by connecting to the database.
8. For all WebLogic domains, it verifies that the domain directory exists and that there
are no ConfigTool backup files in the domain directory (this prevents affecting a domain
is already secured).
9. For WebLogic 9.2 and later, it verifies the config.xml and that the domain is not
running and then starts it. Then it verifies that WLST script can connect and
login. Then it shuts down the domain
The following steps are performed:
1. Uses the SSM’s instance wizard (instancewizard.sh|bat) to create the SSM instance.
2. Uses policy loader and loads policies from temporary directory.
3. Uses the SetPassword tool to set the password for the Admin Server system
user.
4. For WebLogic domains, edits the StartWeblogic script in the domain, inserts
ALES JAR files to the CLASSPATH, and adds ALES "JAVA_OPTIONS". It also
copies the security.properties
file.
5. For WebLogic 9.2 and later, it starts and verifies the WebLogic domain, creates a new
security realm, creates and configures all required providers (ALES and others). It
then switches the default realm to the new realm and shuts down the domain.
myssm_config.properties
located in the SSM’s adm
directory. Then open the file in a text editor and make the changes shown in Table 4-2.ConfigTool.bat -check myssm_config.properties
to ensure there are no errors.ConfigTool.bat -process myssm_config.properties
.
This section describes how to specify the location of the JDBC driver in the CLASSPATH environment variable. This is required if you are using a MS SQL, PointBase, or DB2 database and the WLS, WLS 8.1, Java, or Web Service SSM.
Notes: |
To add the JDBC driver to the CLASSPATH, edit INSTANCE_HOME
/config/WLESws.wrapper.conf
and append the JDBC driver to the wrapper.java.classpath
parameter.
wrapper.java.classpath.48=F:/bea/ales30-ssm/webservice-ssm/lib/sslclient.jar
wrapper.java.classpath.49=F:/bea/ales30-ssm/webservice-ssm/lib/pdsoap11.jar
wrapper.java.classpath.50=F:/bea/ales30-ssm/webservice-ssm/lib/antlr.jar
wrapper.java.classpath.51=F:/pbclient51.jar
To add the JDBC driver to the CLASSPATH, edit INSTANCE_HOME
/bin/set-env.bat
(or set-env.sh
) and append the JDBC driver to the CLASSPATH environment variable.
set CLASSPATH=%CLASSPATH%;%INSTALL_HOME%\lib\antlr.jar
set CLASSPATH=%CLASSPATH%;f:\pbclient51.jar
set CLASSPATH=%CLASSPATH%;%INSTALL_HOME%\lib\jaxrpc.jar
To add the JDBC driver to the CLASSPATH, edit the INSTANCE_HOME
/bin/set-wls-env.bat
(or set-wls-env.sh)
file and append the JDBC driver location to the WLES_POST_CLASSPATH
environment variable.
set WLES_POST_CLASSPATH=%WLES_POST_CLASSPATH%;%INSTALL_HOME%\lib\jsafeJCE.jar
set WLES_POST_CLASSPATH=%WLES_POST_CLASSPATH%;%INSTALL_HOME%\lib\asn1.jar
set WLES_POST_CLASSPATH=%WLES_POST_CLASSPATH%;%INSTALL_HOME%\lib\certj.jar
set WLES_POST_CLASSPATH=%WLES_POST_CLASSPATH%;f:\pbclient51.jar
![]() ![]() ![]() |