Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX AAA Server A.07.00 Administrator's Guide: HP-UX 11i v1, 11i v2, and 11i v3 > Chapter 3 Installing and Securing the HP-UX AAA Server

Securing the HP-UX AAA Server

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Performing the steps in this section increases the security of your HP-UX AAA Server installation. HP recommends all customers perform the steps in“Changing the Default HP-UX AAA Server Settings ”. Perform the steps in “Environment Specific Security Procedures ” depending on your environment.

Changing the Default HP-UX AAA Server Settings

The following information explains how to increase the security of your HP-UX AAA Server by changing some of the default settings. HP recommends that all customers change the default values.

Changing the Default Tomcat User Name and Password

All Tomcat servers come with the same default user name and password. You must change the user name and password to unique values.

Complete the following steps to change the Tomcat user name and password:

  1. Open /opt/hpws/tomcat/conf/tomcat-users.xml.

  2. Look for entries with the roles=“tomcat” string. These entries are valid Tomcat user names and passwords.

  3. Modify the file to include only the user name and password you want to use. Use the following format:

    <user username="new user name" password="new password" roles="tomcat"/>

Changing the Default RMI Objects Secret

HP recommends changing the default RMI Objects secret.

Complete the following steps to change the default RMI objects secret:

  1. Open /opt/hpws/tomcat/webapps/aaa/WEB-INF/gui.properties.

  2. Look for the following entry:

    rmi.config.secret = "secret"
  3. Change the “secret” portion to a new value

  4. Open the /opt/aaa/remotecontrol/rmiserver.properties file.

  5. Look for the following entry:

    rmi.config.secret = "secret"
  6. Change the “secret” portion to the same value configured in Step 3.

IMPORTANT: The rmi.config.secret in /opt/aaa/remotecontrol/rmiserver.properties and in /opt/hpws/tomcat/webapps/aaa/WEB-INF/gui.properties be identical.

Changing the Default test_user Settings

HP recommends changing the default test_users password. This password can be changed only after starting the Server Manager. More information on how to change the default test_users password is provided in “Changing the Default test_user Settings”

Changing the Default localhost Proxy Settings

HP recommends changing the default localhost proxy settings. This setting can be changed only after starting the Server Manager. More information on how to change the default localhost proxy settings is provided in “Changing the Default localhost Proxy Settings”.

Environment Specific Security Procedures

Depending on your environment needs, you can perform any of the following steps for additional security:

Using Secure Socket Layer (SSL) for Secured Remote Server Manager Administration

Use the following steps to configure SSL (HTTPS):

  1. Generate a certificate for Tomcat to establish the SSL connection. Use the following steps to create a self-signed certificate with the Java command line keytool utility:

    1. Remove $HOME/.keystore if it already exists

    2. Enter the following command:

      export JAVA_HOME=/opt/java1.4
    3. Enter the following command:

      $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
    4. Enter a password for the key store when prompted.

    5. Enter the certificate information (company, contact name, etc.), when prompted. This information must be accurate because it is displayed to users who attempt to administer Server Manager.

    6. Enter a password for the key when prompted. Use the same password you used for the key store

  2. Uncomment the following underlined comments in /opt/hpws/tomcat/conf/server.xml:

    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="10" debug="0" scheme="https" secure="true"
    useURIValidationHack="false"
    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    clientAuth="false" protocol="TLS" />
    </Connector>
    -->
  3. Add the keystorePass attribute to the uncommented field in /opt/hpws/tomcat/conf/server.xml to establish the key store and key password on Tomcat. Add the keystorePass attribute as shown in the following:

    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    clientAuth="false" protocol="TLS" keystorePass="<password>" />
    IMPORTANT: Replace <password> with the password used to generate the keystore in Step 1.
  4. Stop and start Tomcat:

    • Stop - /opt/hpws/tomcat/bin/shutdown.sh

    • Start - /opt/hpws/tomcat/bin/startup.sh

  5. Point your web browser to:

    https://<hostname>:8443/aaa

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 HP-UX 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/hpws/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/hpws/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.4
  5. Stop Tomcat if it is running:

    /opt/hpws/tomcat/bin/shutdown.sh
  6. Restart Tomcat:

    /opt/hpws/tomcat/bin/startup.sh
  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 17 “SQL Access” for more information on the SQL Access feature.

  9. Start the RMI objects:

    /opt/aaa/remotecontrol/rmistart.sh
  10. Point your web browser to:

    http://<hostname>:8081/aaa
  11. Login with the new AAA Server-specific user name and password

Running the HP-UX AAA Server as a Non-Root User

Some organizations require network server processes to run as the non-root user.

Complete the following steps to run the HP-UX AAA server as a non-root user:

  1. Login to the system as the root user.

  2. Add the user name www to the aaa group.

  3. Use the following command to start the RMI objects as the aaa user:

    su - aaa -c /opt/aaa/remotecontrol/rmistart.sh
  4. Use the following command to start Tomcat as the www user:

    su - www -c "export JAVA_HOME=/opt/java1.4;
    /opt/hpws/tomcat/bin/startup.sh"
  5. Point your web browser to:

    http://<hostname>:8081/aaa
NOTE: Any log files created when the HP-UX AAA Server was running as the root user will not be accessible after performing this procedure. To view these logfiles, change the ownership to match the UID of when the log files were created. Refer to the chown manpage for more information.

Setting Up the HP-UX AAA Server to Start as Non-Root User After Reboot

Complete the following steps to set up the HP-UX AAA Server to start as non-root user after reboot:

  1. Set the RADIUSD variable to 1 in the /etc/rc.config.d/radiusd.conf file.

  2. Open the /sbin/init.d/radiusd.rc file and look for the following entry:

    DAEMONNM=radiusd
    CONFFILE=$AAAPATH/clients
    DAEMONEXE=/opt/aaa/bin/${DAEMONNM}
  3. Change the DAEMONEXE line to set radiusd to start as the aaa user after reboot:

    Change:

    DAEMONEXE=/opt/aaa/bin/${DAEMONNM}

    To:

    DAEMONEXE=”/usr/bin/su - aaa -c /opt/aaa/bin/${DAEMONNM}”
  4. Look for the following entry:

    echo "$DAEMONNM started with <$retval>"
    if [[ -x /opt/aaa/remotecontrol/rmistart.sh ]]; then
    /usr/bin/nohup /opt/aaa/remotecontrol/rmistart.sh >/dev/null 2>&1
    fi
  5. Change the then statement to start the RMI objects as the aaa user after reboot:

    Change:

    if  [[ -x /opt/aaa/remotecontrol/rmistart.sh ]]; then
    /usr/bin/nohup /opt/aaa/remotecontrol/rmistart.sh
    >/dev/null 2>&1
    fi

    To:

    if  [[ -x /opt/aaa/remotecontrol/rmistart.sh ]]; then
    /usr/bin/nohup /usr/bin/su - aaa -c
    /opt/aaa/remotecontrol/rmistart.sh >/dev/null 2>&1
    fi
  6. Look for the following entry:

    # stop the daemon!!!
    if [[ -x /opt/aaa/remotecontrol/rmistop.sh ]]; then
    /opt/aaa/remotecontrol/rmistop.sh >/dev/null 2>&1
    fi
  7. Change the then statement to stop the RMI objects as the aaa user during shutdown:

    Change:

    if  [[ -x /opt/aaa/remotecontrol/rmistop.sh ]]; then
    /opt/aaa/remotecontrol/rmistop.sh >/dev/null 2>&1
    fi

    To:

    if  [[ -x /opt/aaa/remotecontrol/rmistop.sh ]]; then
    /usr/bin/su - aaa -c /opt/aaa/remotecontrol/rmistop.sh
    >/dev/null 2>&1
    fi
  8. If you are implementing the SQL Access feature, add the following environment variable settings in the user’s .profiles file in the home directory:

    (For ODBC only) export ODBCINI=path/odbc.ini
    (For OCI and ODBC) export SHLIB_PATH=${SHLIB_PATH}:Path for odbc/oci client libraries
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.