Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System Upgrade Guide for HP-UX  

Chapter 9
Access Manager

This chapter describes how to upgrade Access Manager software from previous Java ES versions to Java ES 2005Q4 (Release 4): Sun Java System Access Manager 7 2005Q4.

The chapter provides a general overview of Access Manager upgrade issues and procedures for the different upgrade paths supported by Java ES Release 4.


Note

File locations in this chapter are specified with respect to a directory path referred to as AccessManager-base. At least part of this path might have been specified as an installation directory when Access Manager was initially installed. If not, the Java ES installer assigned a default value.

The default value of AccessManager-base for HP-UX platform:

HP-UX: /opt/sun/identity.



Overview of Access Manager Upgrades

This section describes the following general aspects of Access Manager that impact upgrading to Java ES 2005Q4 (Release 4):


Note

Versions of Access Manager that predated Java ES Release 3 were named Identity Server. Hence references to Identity Server in this chapter are to earlier versions of the Java ES Access Manager component.


About Java ES Release 4 Access Manager

Java ES Release 4 Access Manager has been enhanced in major ways. On the back end, the product has been re-architected to support multiple identity repositories, or user data stores. Thus Release 4 Access Manager supports not only an LDAP directory such as Directory Server, but other data storage protocols and formats as well. Release 4 Access Manager includes new interfaces and new services to support the integration of multiple identity repositories.

On the front end, a new Access Manager Console is used to configure the new Access Manager services and identity repositories.

The new functional capabilities and interfaces make Release 4 Access Manager a major new release. In order to provide backward compatibility, Release 4 can be run in legacy mode, which supports the Java ES components that depend on Release 3 Access Manager services (for more information, see Compatibility Issues).

Access Manager Upgrade Roadmap

Table 9-1 shows the supported Access Manager upgrade paths to Java ES Release 4.

Table 9-1  Upgrade Paths to Java ES Release 4: Sun Java System Access Manager 7 2005Q4

Java ES Release

Component

General Approach

Re-configuration Required

Release 3

Sun Java System Access Manager 6.3 2005Q1

Direct upgrade:
Performed by removing the Release 3 version and then doing a full installation and re-configuration of Release 4.

Configuration data
Customized JSPs for Access Manager console and authentication UI

Directory schema

Access Manager Data

Access Manager, like other Java ES components, makes use of various kinds of data that for any specific upgrade might need to be migrated to an upgraded version. The following table shows the type of data that could be impacted by an upgrade of Access Manager software.

Table 9-2  Access Manager Data Usage

Data Category

Location

Usage

Configuration data

/etc/AccessManager-base/config/AMConfig.properties

/etc/AccessManager-base/config/serverconfig.xml

JAR files for authentication and customized modules AccessManager-base/lib

Broker and related services configurations

Web container

configuration

Web Server:

server.policy and server.xml files in /opt/sun/webserver/https-hostname/config

Application Server:

server.policy and domain.xml files in /var/opt/appserver/domain/domain1/config

WebSphere and WebLogic:

Respective policy and configuration files are modified when Access Manager is configured for these web containers

Configuration of Access Manager web container instance.

Customization data (Web container customized JSP files)

Admin Console:

AccessManager-base/web-src/applications

Authentication UI:

AccessManager-base/web-src/services

Configuration of Access Manager administration interfaces.

Directory schema

Services configuration

User data

Directory Server

Access Manager provides authentication and authorization services for end users, based on services configuration, user, and policy data that is stored in a directory.

Dynamic application data

None

Access Manager does not persistently store application data such as session state.

Compatibility Issues

The new functional capabilities of Release 4 Access Manager involve the following new interfaces:

Access Manager support for these new interfaces is enabled by configuring Access Manager to run in enhanced (Realm) mode. However, Realm mode is not compatible with the earlier Java ES Release 3 or Release 2 Access Manager. For example, directory data has to be migrated to support Realm mode operation. The enhanced Access Manager Console is needed to support enhanced Access Manager services.

In addition, Realm mode does not support other Java ES components, such as Portal Server, Communications Express, Messaging Server, and others.

To support backward compatibility, Release 4 Access Manager can be configured to run in Legacy mode. With some minor exceptions (see Sun Java System Access Manager 7 2005Q4 Release Notes (http://docs.sun.com/doc/819-2134), Legacy mode is backwardly compatible with Release 3 Access Manager.

Legacy mode is necessary to support other Java ES components, as well as older versions of Access Manager policy agents, which cannot interoperate with Access Manager in Realm mode. This incompatibility is an important upgrade consideration, and means in most Java ES deployments, that Access Manager should be upgraded to Release 4 Legacy mode.

Even when configured to run in Legacy mode, however, Release 4 Access Manager is incompatible with Release 3 Delegated Administrator. If Access Manager is upgraded to Release 4, then Delegated Administrator also must be upgraded to Release 4 to provision users for Messaging Server and Calendar Server. However, Messaging Server and Calendar Server do not, themselves, have to be upgraded to Release 4.

Access Manager Dependencies

Access Manager dependencies on other Java ES components can impact the procedure for upgrading and re-configuring Access Manager software. Changes in Access Manager interfaces or functions, for example, could require upgraded version of components upon which Access Manager depends. The need to upgrade such components depends upon the specific upgrade path.

Access Manager has dependencies on the following Java ES components:


Upgrading Access Manager from Java ES Release 3

This section includes information about upgrading Access Manager from Java ES 2005Q1 (Release 3) to Java ES 2005Q4 (Release 4). The section covers the following topics:

Introduction

When upgrading Java ES Release 3 Access Manager to Release 4, consider the following aspects of the upgrade process:

Full Access Manager Upgrade

This section describes how to perform a full Access Manager upgrade from Java ES Release 3 to Java ES Release 4:

Pre-Upgrade Tasks

Before you upgrade Access Manager, perform the procedures described in the following sections.

Verify Current Version Information

You can verify the current version of Access Manager using the following command:

Upgrade Access Manager Dependencies

It is generally recommended that all Java ES components on a computer system (and in a computing environment) be upgraded to Java ES Release 4. However, because Access Manager does not require upgrading the Java ES Release 3 components upon on which it depends, this task is optional.

However, if you choose to upgrade all Access Manager dependencies, they should be upgraded in the following order, all before you upgrade Access Manager. You can skip any that might already have been upgraded.

  1. Shared Components. Instructions for upgrading Java ES shared components to Release 4 are provided in Chapter 2, "Upgrading Java ES Shared Components".
  2. Directory Server. Instructions for upgrading Directory Server to Release 4 are provided in Chapter 3, "Directory Server and Administration Server".
  3. Web Container Software. Instructions for upgrading Web Server or Application Server are provided in Chapter 5, "Web Server" and Chapter 8, "Application Server", respectively.
  4. If web container software is not upgraded before Access Manager, the upgrade procedure (using the amconfig script) will configure and re-deploy Access Manager to the existing web container.

Back Up Directory Server Data

The Access Manager upgrade process uses scripts that modify Directory Server schema. Therefore, before you upgrade Access Manager, back up your Directory Server data using the Directory Server Console or a command-line utility such as db2bak.

For more information about backing up Directory Server, see the Sun Java System Directory Server Administration Guide (http://docs.sun.com/doc/817-7613).

Back Up Release 3 Access Manager Configuration Information

Because the re-configuration of Release 4 Access Manager software requires the re-configuration of the Release 3 version, it is important to back up configuration files to a known location. The following files should be backed up:

Back Up Release 3 Access Manager Log and Debug Files

For the purpose of analyzing system state information, it is a good idea to back up log and debug files so they are not lost. These files are at the following locations:

Obtain Required Configuration Information and Passwords

To upgrade Access Manager, you must provide specific configuration information, including:

Upgrading Access Manager

The upgrade of Access Manager software to Java ES Release 4 includes procedures for re-configuring Access Manager and for migrating Access Manager data.

Upgrade Summary

The procedure for upgrading Access Manager consists of the following steps:

  1. Use the Java ES Release 4 installer with the Configure Later option. Use the Java ES Release 4 installer with the Configure Later option.
  2. These steps are each documented in the following procedures.

Upgrade Procedures
  1. Remove the Java ES Release 3 Version of Access Manager.
    1. Log in as root to the computer hosting Release 3 Access Manager.
    2. Change directory to the platform/Product/identity_svr/Tools directory in the Java ES Release 4 distribution.
    3. Obtain the values of the following parameters to be requested by the ampre70upgrade script:
    4. Table 9-4  Configuration Parameters1: ampre70upgrade

      Parameter

      Value

      Directory Server Host

      Set the fully qualified name: hostname.domian

      Directory Server Port

      Specify a non-SSL port number1

      Default: 389

      Access Manager Administrator DN

      Default:

      uid=amadmin,ou=People,dc=iplanet,dc=com

      Access Manager Administrator

      Password

       

      1The pre-upgrade process will not complete successfully if you specify a Directory Server SSL port such as the default SSL value of 636.

    5. Make sure that Directory Server is running or start it if it is not.
    6. Run the ampre70upgrade script.
    7. ./ampre70upgrade

      The script backs up Access Manager configuration files and removes Release 3 packages.

  2. Install the Java ES Release 4 Version of Access Manager.
    1. Run the Java ES installer on the computer hosting Release 3 Access Manager.
    2. Select Access Manager from the selection panel.
    3. If a “Conflict” message appears on the screen, it means the Installer has found Access Manager configuration information from the previous version, which is expected. Re-configuration will be performed in subsequent steps. You can ignore this “Conflict” message and proceed.

    4. Specify the same installation directory in which Release 3 was installed.
    5. Select the Configure Later option.
    6. Quit the Java ES installer when installation is complete.

    7. Note

      If you are using the Java ES Installer command line interface to install Access Manager, it will automatically install Directory Server software as well. If you are using a remote Directory Server you can uninstall the local Directory Server software using the procedures in the Java Enterprise System Installation Guide for UNIX.


  3. Upgrade mobile access software.
  4. Access Manager mobile access software needs to be upgraded by patching the Release 3 version. The patches needed are shown in the following table:

    Table 9-5  Patches1 to Upgrade Access Manager Mobile Access software

    Description

    Patch id

    Mobile Access software

    121724-01

    Access Manager locale

    121929-01

    1Patch revision numbers are the minimum required for upgrade to Java ES Release 4. If newer revisions become available, use the newer ones instead of those shown in the table.

    1. Obtain the required patches using the patch numbers from Table 9-5.
    2. Patches can be downloaded from:

      http://sunsolve.sun.com.

    3. Log in as superuser.
    4. su root

    5. Apply the patches.
    6. swinstall -f patchlocation <patch_ID>

  5. Re-customize JSPs for Access Manager.
  6. Re-apply the Release 3 customizations to JSPs for the Access Manager Console and authentication user interface (UI) that you saved under Back Up Release 3 Access Manager Configuration Information.

    Then, copy the customized JSP files to the correct directories. For example, on HP-UX systems:

    • Console: AccessManager-base/web-src/applications/console
    • Authentication UI:
    • AccessManager-base/web-src/services/config/auth/default or AccessManager-base/web-src/services/config/auth/default_locale (where Locale is a locale indicator like ja)

      For more information, see the Sun Java System Access Manager Developer’s Guide (http://docs.sun.com/doc/819-2139).

  7. Undeploy Access Manager, re-configure, and re-deploy into a Web Container.
  8. Configure Access Manager for your specific web container by running the amconfig script. The amconfig script (and the associated amsamplesilent template input file) resides in the following directory:

    AccessManager-base/bin

    For information about the amconfig script and the amsamplesilent template file, see the Sun Java System Access Manager Administration Guide (http://docs.sun.com/doc/817-7647).

    Perform the following steps to re-configure and re-deploy Access Manager to the web container:

    1. If you choose to upgrade your web container software, as described in Upgrade Access Manager Dependencies, make sure the upgrade is complete.
    2. Check that Directory Server and the appropriate web container are running.
    3. Create an amconfig input file based on the amsamplesilent template input file:
    4. cp amsamplesilent config-file

    5. Set the configuration parameters in config-file.
    6. All the parameters need to be set correctly. Some of the values can be migrated from the AMConfig.properties file and others are more specific to the upgrade procedure, as shown in the following table.

      Table 9-6  Patches to Upgrade Access Manager Mobile Access software

      Parameter

      Value

      Upgrade Parameters

      DEPLOY_LEVEL

      26 (for undeploy) or 1 (for re-configure and deploy)

      DIRECTORY_MODE

      5 (Existing Upgrade)

      AM_REALM

      set to disabled (Realm Mode is disabled, Legacy Mode is therefore enabled)

      (Default = enabled)

      JAVA_HOME

      set to JDK Release 4 directory:

      /usr/java/jdk1.5.0_04/

      WEB_CONTAINER

      set to the value appropriate to the web container type you are using and fill out only the corresponding section of config-file.

      WS61_INSTANCE (If using Web Server as the web container)

      =https-<hostname>.<domain> where the value above matches the instance name in /WebServer-base/SUNWsbsvr/

      The values is case-sensitive.

      Migrated from AMConfig.properties

      SERVER_PROTOCOL

      com.iplanet.am.server.protocol

      SERVER_PORT

      com.iplanet.am.server.port

      SERVER_HOST

      com.iplanet.am.server.host

      DS_HOST

      com.iplanet.am.directory.host

      DS_PORT

      com.iplanet.am.directory.port

      ROOT_SUFFIX

      com.iplanet.am.defaultOrg

      CONSOLE_DEPLOY_URI

      com.iplanet.am.console.deploymentDescriptor

      SERVER_DEPLOY_URI

      com.iplanet.am.services.deploymentDescriptor

      PASSWORD_DEPLOY_URI

      com.sun.identity.password.deploymentDescriptor

      AM_ENC_PWD

      am.encryption.pwd

      For other parameters, provide the same values that were used in the Release 3 configuration that you are upgrading, unless you are changing web container or passwords.

    7. Run amconfig to undeploy Access Manager
    8. Set the value of DEPLOY_LEVEL in config-file to 26.

      cd /AccessManager-base/bin

      ./amconfig -s AccessManager-base/bin/config-file

    9. Run amconfig to reconfigure Access Manager and deploy into web container.
    10. Set the value of DEPLOY_LEVEL in config-file to 1.

      cd /AccessManager-base/bin

      ./amconfig -s AccessManager-base/bin/config-file

  9. Update the directory structure and schema.
  10. Release 4 Access Manager co-exists with the Release 3 directory structure, but the structure must be modified to support Release 4 capabilities. Update the Access Manager directory structure and schema to Release 4 by running the amupgrade script, which is installed in the following directory:

    AccessManager_base/identity/upgrade/scripts

    1. Obtain the values of the following parameters to be requested by the amupgrade script:
    2. Table 9-7  Access Manager Configuration Parameters: amupgrade

      Parameter

      Value

      Directory Server Host

      Set the fully qualified name: hostname.domain

      Directory Server Port

      Specify a non-SSL port number1 Default: 389

      Directory Manager DN

      Default: cn=Directory Manager

      Directory Manager Password

       

      Access Manager Administrator User ID Default: amadmin

      Default: amadmin

      Access Manager Administrator Password

       

      Enable Realm Mode

      Y/N: Yes means Realm Mode is enabled and services data is migrated to new Realm tree. No (default) means services data remain in Legacy Mode.

    3. Run the amupgrade script.
    4. cd AccessManager-base/upgrade/scripts

      export SHLIB_PATH=/opt/sun/private/lib:AccessManager-base/lib

      ./amupgrade

      If the upgrade is successful, the script displays “Upgrade completed.”

    5. Check the following upgrade log file for information about the directory schema extensions:
    6. HP-UX: opt/sun/install/logs

Verifying the Access Manager Upgrade

After you finish the upgrade procedure, verify that it was successful as follows:

  1. Start Access Manager.
  2. Start the web container in which Access Manager is deployed.

  3. Log in to the Access Manager console as amadmin using the following URL:
  4. http://hostname.domain:port/amconsole.

    where hostname.domain:port is the fully qualified host name and port number of the web container you are using.

    Verify that new Release 4 services referred to in About Java ES Release 4 Access Manager are available under the “Service Configuration” tab.

  5. Review the status of the upgrade by checking the following upgrade log files in the /var/opt/sun/install/logs directory:
  6. Sun Java Enterprise System installer:

    • Java_Shared_Component_Install.timestamp
    • Java_Enterprise_System_install.Atimestamp
    • Java_Enterprise_System_install.Btimestamp
    • Java_Enterprise_System_Summary_Report_install.timestamp amupgrade script:
    • Sun_Java_System_Identity_Server_upgrade_dit_log.timestamp
  7. Review Access Manager trouble shooting files for errors.
  8. The files are located at /var/opt/sun/identity/debug

Post-Upgrade Tasks

If you are using the Security Assertion Markup Language (SAML) service, you must add and enable a SAML authentication module using the Access Manager console. For information on creating a SAML authentication module instance, refer to the Sun Java System Access Manager Administration Guide (http://docs.sun.com/doc/817-7647).

Rolling Back the Upgrade

No scripts are provided for rolling back Access Manager to its pre-upgrade state. The process must be performed manually using Access Manager data that was backed up as part of the pre-upgrade tasks (see Back Up Release 3 Access Manager Log and Debug Files). Rollback is too difficult to be practical.

Multiple Instance Upgrades: Release 3 and Release 4 Co-existence

In some deployment architectures Access Manager is deployed on multiple computer systems to provide for high availability and scalability. The Access Manager instances access the same Directory Server. It is often desirable to upgrade the Access Manager instances sequentially without interrupting service. This section discusses the procedure for performing such rolling upgrades.


Note

Upgrading multiple instances of Access Manager installed on the same host system is not supported in the current release. If you have multiple instances on the same host, after you upgrade the main instance, you must then recreate the additional instances.


The procedure for upgrading Access Manager from Release 3 includes a step for migrating directory schema to support Release 4. Release 3 Access Manager does not support Release 4 directory schema, however Release 4 Access Manager does support Release 3 directory schema.

Java ES Release 4 Access Manager and Release 3 Access Manager instances can coexist and run concurrently against the same Directory Server only if the directory schema has not yet been migrated to Release 4. Therefore, in rolling upgrades, the directory schema should not be migrated to Release 4 until all Access Manager instances have been first upgraded to Release 4.

In performing rolling upgrades, upgrade each instance of Access Manager as described in Upgrading Access Manager, except for Step 6. When all instances have been upgraded, then that step can be performed.

Access Manager SDK-only Upgrades

In some deployment architectures, the Access Manager SDK component is installed on one or more computer systems without installing other Access Manager components on those computers. Access Manager SDK serves as a remote interface to Access Manager and must be re-configured for the same operational mode as Access Manager: Legacy or Realm. As a remote interface to Access Manager, the SDK does not need to be configured to access Directory Server.

If Access Manager SDK is being used to support a web component, such as Portal Server or Communications Express, which depends upon web container services, Access Manager SDK must be configured for the corresponding web container. However, Access Manager SDK can also support non-web components, and no web container is needed.

The procedure for upgrading Access Manager SDK is a subset of the procedure for the full Access Manager upgrade, based on the above characteristics.

This section describes how to perform an Access Manager SDK-only upgrade from Java ES Release 3 to Java ES Release 4:

Pre-Upgrade Tasks

The pre-upgrade tasks for Access Manager SDK are the same as for the full Access Manager upgrade, but exclude those related to Directory Server and administration tool customizations. The pre-upgrade tasks needed for Access Manager SDK are the following:

Upgrading Access Manager SDK

The upgrade procedures for Access Manager SDK are the same as for the full Access Manager upgrade, but exclude those related to administration tool customizations and migrating directory schema.

  1. Remove the Java ES Release 3 version of Access Manager SDK.
  2. Follow the instructions in “Remove the Java ES Release 3 Version of Access Manager.” on page 209, except remove only Access Manager SDK.

  3. Install Java ES Release 4 version of Access Manager SDK.
  4. Follow the instructions in “Install the Java ES Release 4 Version of Access Manager.” on page 210, except install only Access Manager SDK.

  5. Re-configure Access Manager SDK.
  6. Follow the instructions in “Undeploy Access Manager, re-configure, and re-deploy into a Web Container.” on page 212, except set the DIRECTORY_MODE=5 and the DEPLOY_LEVEL parameter as follows:

    • If Access Manager SDK is configured for a web container: DEPLOY_LEVEL=4 (upgrade the SDK and configure the web container).
    • If Access Manager SDK is not configured for a web container: DEPLOY_LEVEL=3 (upgrade the SDK only)

Verifying the Access Manager SDK Upgrade

There are three ways you can verify a successful Access Manager SDK upgrade:

Upgrade Rollback

No scripts are provided for rolling back Access Manager to its pre-upgrade state. The process must be performed manually using Access Manager data that was backed up as part of the pre-upgrade tasks (see Back Up Release 3 Access Manager Log and Debug Files). Rollback is too difficult to be practical.



Previous      Contents      Index      Next     


Part No: 819-4460-10.   Copyright 2006 Sun Microsystems, Inc. All rights reserved.