Contained WithinFind More DocumentationFeatured Support Resources | Scarica il manuale in formato PDF (1816 KB)
Chapter 20 Patching OpenSSO Enterprise 8.0Sun 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 OperationThis 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.
|
|
Release |
Patch or Upgrade Path |
|---|---|
|
Sun OpenSSO Enterprise 8.0 update release or patch |
|
|
Sun OpenSSO Express or nightly build |
Patching an OpenSSO Enterprise 8.0 or an OpenSSO Enterprise 8.0 update release with an OpenSSO Express release or nightly build is not recommended. Support. Sun support for OpenSSO Express depends on your specific contract. For information, see http://wikis.sun.com/x/5TCTAg. |
|
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 or Federation Manager to an OpenSSO Enterprise 8.0 update release or patch:
|
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.
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:
Compares an OpenSSO Enterprise WAR to its original manifest, to determine if the WAR file has been customized or modified
Compare two OpenSSO Enterprise WAR files, to determine the differences between the two files including any customizations made to the original WAR file and any changes in the new WAR file
Generates a staging area of the files required to generate a new patched OpenSSO Enterprise WAR file
Creates a manifest file that you can include in a customized OpenSSO Enterprise WAR (such as a console only WAR or distributed authentication UI server WAR).
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:
A string that identifies the specific version of the OpenSSO Enterprise WAR file
All of the individual files in the OpenSSO Enterprise WAR file, with checksum information for each file
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.
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). |
Before you install the ssopatch utility, you must download and unzip the patch ZIP file in the OpenSSO Enterprise 8.0 update release (patch 141655).
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.
Create a new directory to unzip the ssoPatchTools.zip file. For example: ssopatch-files
Unzip the ssoPatchTools.zip file in the new directory. You then get these files:
Readme.patch
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
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.
The patching operation compares the manifests for each WAR file and then shows:
Files customized in the original OpenSSO Enterprise 8.0 WAR file
Files updated in a new OpenSSO Enterprise 8.0 update release WAR file
Files added or removed between the two WAR file versions
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.
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:
Copy your existing OpenSSO Enterprise WAR file to a safe location. Then, if you need to back out an update for some reason, you can re-deploy the backup copy of your WAR file.
Backup your configuration data, as described in Chapter 15, Backing Up and Restoring Configuration Data, in Sun OpenSSO Enterprise 8.0 Administration Guide.
Make sure that your JAVA_HOME environment variable points to JDK 1.5 or later.
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.
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.
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. |
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.
Redeploy the /patched/opensso.war file to the web container using the original deploy URI. For example: /opensso
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 bug fixes and enhancements in the OpenSSO Enterprise 8.0 update release. You must run updateschema in order to update the server version.
The updateschema.sh or updateschema.bat script requires the OpenSSO Enterprise 8.0 Update 1 or later version of the ssoadm command-line utility. Therefore, before you run this script, install the admin from the OpenSSO Enterprise 8.0 update release tools, as described in Installing the OpenSSO Enterprise Utilities and Scripts in the ssoAdminTools.zip File.
Change to the patch-tools/patch directory, where patch-tools is where you unzipped ssoPatchTools.zip.
Run updateschema.sh or updateschema.bat.
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.
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.)