HP-UX AAA Server A.08.01 administrator's guide (T1428-90072, May 2010)

Table Of Contents
Creating a Tomcat Identity Specifically for the HP-UX AAA Server
If several applications use Tomcat, you can configure Tomcat to have a user name and
password specifically for the AAA Server. All other applications using Tomcat will
have a different user name and password.
Complete the following steps to create a Tomcat identity specifically for your HP-UX
AAA Server:
1. Search for the following line in/opt/hpws22/tomcat/conf/server.xml:
<!-- Tomcat Examples Context -->
Add the following code above this line:
<Context path="/aaa" docBase="aaa" debug="0"
reloadable="false" crossContext="false">
<Realm className="org.apache.catalina.realm.MemoryRealm"
debug="0" pathname="conf/aaa-users.xml"/>
</Context>
2. Open the /opt/hpws22/tomcat/conf/aaa-users.xml file.
3. Replace adminaaa with the new user name and password
4. Enter the following command:
$ export JAVA_HOME=/opt/java1.5
5. Stop Tomcat if it is running:
$ /opt/hpws22/tomcat/bin/shutdown.sh
6. Restart Tomcat:
$ /opt/hpws22/tomcat/bin/startup.sh
NOTE: Before starting and stopping the Remote Method Invocation (RMI) server,
the JAVA_HOME environment variable must be set to appropriate path. For
example, to use Java6, export JAVA_HOME to the /opt/java6 path. If the
JAVA_HOME environment variable is not set or set incorrectly, the default value
/opt/java1.5 is used to start and stop the RMI Server.
7. Stop the RMI objects if they are running:
$ /opt/aaa/remotecontrol/rmistop.sh
8. Set the shared library path to the OCI client or ODBC driver in the /opt/aaa/
remotecontrol/rmistart.sh script if you are implementing the SQL Access
feature. See the following README files for more information:
/opt/aaa/examples/sqlaccess/oracle-1/README: for Oracle - OCI
/opt/aaa/examples/sqlaccess/mysql-1/README: for MySQL - ODBC
See Chapter 22: “SQL Access” (page 338) for more information on the SQL Access
feature.
9. Start the RMI objects:
66 Installing and Securing the HP-UX AAA Server