Sun OpenSSO Enterprise 8.0 Installation and Configuration Guide

Chapter 23 Patching OpenSSO Enterprise 8.0

Sun periodically provides update releases and patches to OpenSSO Enterprise 8.0 on http://sunsolve.sun.com/. To find the latest OpenSSO Enterprise 8.0 update release or patch, search for patch ID 141655.

An OpenSSO Enterprise 8.0 update release or patch includes a new opensso.war file that you can install using the methods described in Planning Your Patch Operation.

This chapter provides the following information about patching OpenSSO Enterprise:

Planning Your Patch Operation

This section describes the general steps to patch an OpenSSO Enterprise 8.0 release. If you are installing the opensso.war file in an update release or patch as a new deployment, see Chapter 3, Installing OpenSSO Enterprise.

ProcedureTo Plan Your Patch Operation

  1. Check the patch and upgrade paths in Table 23–1.

  2. If you are not familiar with ssopatch, read the Overview of the ssopatch Utility.

  3. Before you install an OpenSSO Enterprise 8.0 update release or patch, check the information about the new features, hardware and software requirements, and issues and workarounds in the following documents:

  4. Download the lastest OpenSSO Enterprise update release or patch (patch ID 141655) from http://sunsolve.sun.com/.

  5. Check the README file associated with the patch for information such as the issues fixed in the patch.

  6. Install ssopatch for your platform, as described in Installing the ssopatch Utility.

  7. Determine if your existing WAR file has been customized or modified, by comparing your WAR file to its internal manifest file.

  8. Compare your existing WAR file and the update release WAR file, to return the files customized in the original WAR, files updated in the new WAR file, and files added or deleted between the two WAR versions.

  9. Backup your existing OpenSSO WAR file and configuration data.

  10. Patch your OpenSSO Enterprise WAR file, as described in Patching an OpenSSO Enterprise 8.0 WAR File.

  11. Run the updateschema script, as described in Running the updateschema Script.

OpenSSO Patch and Upgrade Paths

Table 23–1 OpenSSO Patch and Upgrade Paths

Release 

Patch or Upgrade Path 

Sun OpenSSO Enterprise 8.0 update release or patch 

  • Patching OpenSSO Enterprise 8.0 with an update release or patch using the ssopatch utility.

  • Patching the following OpenSSO Enterprise 8.0 specialized WAR files with an update release using the ssopatch utility:

    • OpenSSO Administration console only WAR file

    • Distributed Authentication UI server WAR file

    • OpenSSO server only WAR file, without the Administration Console

    • IDP Discovery Service WAR file

  • Patching an update release or patch with a newer update release or patch using the ssopatch utility.

  • Installing an OpenSSO Enterprise 8.0 update release or patch as a new deployment.

  • Creating and installing a new specialized WAR file from an OpenSSO Enterprise 8.0 update release or patch.

Sun Java System Access Manager 7.1 

Sun Java System Access Manager 7 2005Q4 

Sun Java System Federation Manager 7.0 

To go from Access Manager 7.x or Federation Manager 7.0 to an OpenSSO Enterprise 8.0 update or patch release: 

  1. Upgrade to OpenSSO Enterprise 8.0, as described in the Sun OpenSSO Enterprise 8.0 Upgrade Guide.

  2. Apply the update release or patch, as described in this chapter.

Overview of the ssopatch Utility

The ssopatch utility is a Java command-line utility that is available on Solaris and Linux systems as ssopatch and on Windows systems as ssopatch.bat.


Note –

The syntax for ssopatch in OpenSSO Enterprise 8.0 update releases has changed considerably since the OpenSSO Enterprise 8.0 release. For the new syntax, see Running the ssopatch Utility in this section.


The ssopatch patch utility can perform these functions:

The ssopatch utility uses a manifest file to determine the contents of a specific OpenSSO Enterprise WAR file. A manifest file is an ASCII text file that contains:

The manifest file is usually named OpenSSO.manifest and is stored in the in the META-INF directory of the OpenSSO Enterprise WAR file. The ssopatch utility sends its results to the standard output (stdout). If you prefer, you can capture the ssopatch output by redirecting the output to a file. If ssopatch finishes successfully, it returns a zero (0) exit code. If errors occur, ssopatch returns a non-zero exit code.

Running the ssopatch Utility

To run the ssopatch utility, follow this usage:

ssopatch --help|-? [--locale|-l]

ssopatch --war-file|-o [--manifest|-m] [--locale|-l]

ssopatch --war-file|-o 
--war-file-compare|-c 
[--staging|-s] 
[--locale|-l] 
[--override|-r] 
[--overwrite|-w]

where the options are:

Option 

Description 

--war-file|-o

Specifies a path to a WAR file (such as opensso.war) that has previously been deployed.

--manifest|-m

Specifies the path to the manifest file you want to create. The manifest file will be generated from the WAR file indicated by --war-file|-o, if this option is provided.

--war-file-compare|-c

Specifies a path to a WAR file to compare against the WAR file indicated by --war-file|-o.

--staging|-s

Specifies a path to the staging area where the files from an OpenSSO Enterprise WAR will be written. 

--locale|-l

Specifies the locale to be used. If this option is not specified, ssopatch uses the default system locale.

--override|-r

Overrides revision checking for the two WAR files. Revision checking determines the versions of the WAR files and continues only if the versions are compatible. This option allows you to override this check. The fefault is false (revision checking is performed). 

--overwrite|-w

Overwrites the files in the existing staging area. The default is false (files are not overwritten). 

Installing the ssopatch Utility

Before you install the ssopatch utility:


Note –

Always install the latest version of the ssopatch or ssopatch.bat utility (and the corresponding updateschema.sh or updateschema.bat script) from the OpenSSO Enterprise 8.0 patch release you are installing.


ProcedureTo Install the ssopatch Utility

  1. Locate the ssoPatchTools.zip file in the zip-root/opensso/tools directory, where zip-root is where you unzipped the update release patch ZIP file.

  2. Create a new directory to unzip the ssoPatchTools.zip file. For example: ssopatch-files

  3. Unzip the ssoPatchTools.zip file in the new directory. You then get these files:

    • README

    • ssopatch and ssopatch.bat utilities

    • resources directory, which contains the ssopatch properties files

    • lib directory, which contains the ssopatch JAR files

    • patch directory, which contains the updateschema and updateschema.bat scripts and related XML files

  4. If you want to run the ssopatch utility from a directory other than its current directory without providing the full path, add the utility to your PATH variable.

Patching an OpenSSO Enterprise 8.0 WAR File

The patching operation compares the manifests for each WAR file and then shows:

The ssopatch utility then copies the appropriate files to a staging directory, where you must add any customizations before you create and deploy the new patched WAR file.

ProcedureTo Patch OpenSSO Enterprise 8.0

Before You Begin

Although ssopatch does not modify your original opensso.war file, it is recommended that you back up this file, in case you need to back out the patched opensso.war file. Backup your existing OpenSSO Enterprise WAR file and configuration data:

  1. Make sure that your JAVA_HOME environment variable points to JDK 1.5 or later.

  2. Although ssopatch does not modify your original opensso.war file, it is recommended that you back up this file, in case you need to back out the patched opensso.war file.

  3. Run ssopatch to create the staging area. For example:

    ./ssopatch -o /zip-root/opensso/deployable-war/opensso.war 
    -c /u1/opensso/deployable-war/opensso.war --override -s /tmp/staging
    
    Generating Manifest for: /zip-root/opensso/deployable-war/opensso.war
    Original manifest: Enterprise 8.0 Build 6(200810311055)
    New manifest: Enterprise 8.0 Update 1 Build 6.1(200904300525)
    Versions are compatible
    Generating Manifest for: /u1/opensso/deployable-war/opensso.war
    Comparing manifest of /zip-root/opensso/deployable-war/opensso.war (generated-200905051031) 
      against /u1/opensso/deployable-war/opensso.war (generated-200905051032)
    File was customized in original, but not found in new war. 
    Staging area using original war version (samples/saml2/sae/header.jsp)
    File was customized in original, but not found in new war. 
    Staging area using original war version (WEB-INF/template/opends/config/upgrade/config.ldif.4517)
    File was customized in original, but not found in new war. 
    Staging area using original war version (WEB-INF/template/opends/config/upgrade/schema.ldif.4517)
    Differences: 1813
    Customizations: 0

    In this example, /tmp/staging is the staging area where ssopatch copies the files.

  4. Update the files as needed in the staging area, using the results of the previous step.

    The following table shows the potential results of the patch operation and the actions you might need to take.

    ssopatch Results

    Explanation and Action Required 

    File not in original war (filename)

    The indicated file does not exist in the original OpenSSO WAR but is in the latest version of the OpenSSO WAR. 

    Action: None

    File updated in new war (filename)

    The indicated file exists in both the original and new OpenSSO WAR files and has been updated in the latest version of the OpenSSO WAR. No customizations have been done in the original OpenSSO WAR. 

    Action: None

    File customized (filename)

    The indicated file exists in both OpenSSO WAR files, has been customized in the original version of the WAR, but has not been updated in the latest version of the WAR. 

    Action: None

    May require manual customization (filename)

    The file exists in both OpenSSO WAR files, has been customized in the original version of the WAR, and has been updated in the latest version of the WAR. 

    Action: if you want your customizations in the file, you must manually add them to the new updated file in the staging directory.

    File was customized in original, but not found in new war

    The file existed in the original WAR file, but is not in the new WAR. 

    Action: None.

Creating a New OpenSSO Enterprise 8.0 Patched WAR File

ProcedureTo Create a New OpenSSO Enterprise 8.0 Patched WAR File

  1. Create a new OpenSSO Enterprise WAR file from the files in the staging area. For example:

    cd /tmp/staging
    jar cvf /patched/opensso.war *

    where /patched/opensso.war is the patched OpenSSO Enterprise WAR 8.0 file.

  2. Redeploy the /patched/opensso.war file to the web container using the original deploy URI. For example: /opensso

Running the updateschema Script

After you run ssopatch, run the updateschema.sh on Solaris or Linux systems or updateschema.bat on Windows. The script updates the OpenSSO Enterprise server version, adds new default server properties, adds new attribute schemas required for fixes and enhancements in the OpenSSO Enterprise 8.0 update release. You must run updateschema in order to update the server version.

ProcedureTo Run the updateschema Script

Before You Begin
  1. Change to the patch-tools/patch directory, where patch-tools is where you unzipped ssoPatchTools.zip.

  2. Run updateschema.sh or updateschema.bat.

  3. When the scripts prompts you, provide the following information:

    • Full path to the ssoadm utility (excluding ssoadm itself). For example: /opt/ssotools/opensso/bin

    • amadmin password

    The updateschema.sh or updateschema.bat script writes any messages or errors to the standard output.

Next Steps

OpenSSO Enterprise 8.0 Update Release Configuration Changes. The patched OpenSSO Enterprise 8.0 WAR file might have configuration changes that were not in your original WAR file. Any configuration changes, if any, will be documented separately for the patch. Check the patch documentation and the Release Notes for more information about any configuration changes. (The version string in the OpenSSO manifest file will change, even if there are no configuration changes in the new WAR file.)

Patching a Site With Multiple OpenSSO Enterprise Instances

In this scenario, you have configured OpenSSO Enterprise as a site with multiple server instances and you want to patch each server instance.

ProcedureTo Patch a Site With Multiple OpenSSO Enterprise Instances

  1. Patch the OpenSSO Enterprise WAR file on each OpenSSO Enterprise server instance, as described in Patching an OpenSSO Enterprise 8.0 WAR File.

  2. On the first OpenSSO Enterprise instance only, run the updateschema or updateschema.bat script, as described in Running the updateschema Script.

  3. Restart the web container for each OpenSSO Enterprise server instance.