Upgrading OpenAM Servers
This chapter covers upgrade from OpenAM core server 11.0.0 or later to the current version. For other OpenAM components, see "Upgrading OpenAM Components".
OpenAM server upgrade relies on the Upgrade Wizard to make the necessary changes to the configuration store. You must then restart OpenAM or the container in which it runs. Even a version number change requires that you run the Upgrade Wizard, so needing to run the Upgrade Wizard says nothing about the significance of the changes that have been made to OpenAM. You must run the Upgrade Wizard even for maintenance releases.
Make sure you try upgrading OpenAM in a test environment before applying the upgrade in your production environment.
|
Starting with this release, a failed write of an account-lockout counter or counter reset switches the affected identity to counters held in memory on that OpenAM server. Previously, a rejected counter write could prevent subsequent authentication failures from being counted at all. Other identities continue using the configured data store, and a read failure alone does not activate this fallback. The switch remains in effect until that server restarts, even if the write failure was transient and the store later recovers. Counters are independent on each server and are lost on restart. A successful login resets the in-memory counter but does not restore persistence. Positive lockout durations are preserved; a configured duration of zero changes from physical account deactivation to a temporary lock of 30 minutes. Once that lock expires, another sequence of failed attempts can lock the account again. Setting Special identities, including Two related corrections also apply to writable stores and explicitly configured in-memory counters: a failure threshold of one now starts a timed lock on the first failure, and a duration multiplier of zero preserves the lock duration for later cycles instead of reducing it to zero. Disabling account lockout, or setting its failure count or failure interval to zero, stops enforcing existing temporary locks consistently across authentication index types. This does not clear the counters or restore persistence: re-enabling lockout before a temporary lock expires enforces that lock again. Physical account restrictions remain subject to the existing account and profile checks. Explicitly configured in-memory counters now invoke the account-lockout callback plugins for the login realm when the failure threshold is reached, without resolving the user from the identity store. Previously, this path sent the lockout notification but skipped the plugin callback because no identity had been resolved. |
|
If you are upgrading from an unsupported version of OpenAM to a later version, you must first upgrade to a supported version. In some cases, you may need to upgrade again depending on the upgrade path. |
|
Starting with this release the legacy Liberty ID-WSF SOAP endpoints ( Two related advanced server properties were also introduced and now default to a fail-close behaviour:
If your deployment depends on the previous (insecure) behaviour, review and adjust these properties before promoting the upgrade. See "Advanced" in the Reference. |
|
Starting with this release the SAML 2.0 and ID-FF IDP discovery reader and writer endpoints ( If your common-domain discovery deployment hosts service providers on a different host than OpenAM, add their return URLs to this property before promoting the upgrade. See "Advanced" in the Reference. |
|
Starting with this release the legacy Liberty ID-FF (Liberty Alliance 1.x) SOAP endpoint ( Also starting with this release, inbound ID-FF state-changing and disclosure operations (federation termination, name registration, single logout, and name-identifier mapping) require a verified XML signature by default ( Enable message signing along with it. OpenAM signs its own outbound ID-FF messages only when
See "Advanced" in the Reference. |
|
Starting with this release the OAuth 2.0 authorization endpoint applies the OAuth2 Provider property Code Verifier Parameter Required to every request whose The token endpoint fails closed to match: while the property is enabled, an authorization code that carries no Update hybrid-flow clients to send a |
|
Starting with this release |
|
Starting with this release the OAuth 2.0 device flow verifies PKCE, as part of the GHSA-h93p-35jm-rj83 hardening. Previously a Device-flow clients that send no |
|
Starting with this release the signature on a SAML v1.x assertion or response is verified against the signing certificate configured for its issuer, as part of the GHSA-j56q-q3r3-hg7f hardening. Previously a certificate carried in the A trusted asserting party therefore now needs its signing certificate alias configured. Signed assertions and responses from a partner whose alias is blank are rejected, and a certificate in the |
|
Starting with this release a host name that is a DNS alias of a realm is accepted as a valid host name, as if it had its own OpenAM now removes the host name of a server or site from the DNS aliases of the top-level realm when the server or site is deleted, or when the primary URL of the site changes, unless the URL of another server or site has the same host name. If the host name cannot be removed at that moment, for example because the DNS aliases or the URLs of the other servers and sites cannot be read or updated, the server or site is still deleted or its URL still changed, OpenAM logs an error in the |
|
Starting with this release OpenAM no longer ships the Restlet Servlet extension ( Custom code that calls |
|
Starting with this release WebFinger ( |
|
Starting with this release OpenAM serves the XACML policy endpoint ( The endpoint otherwise behaves as before, with these changes:
Custom code that refers to |
|
Starting with this release OpenAM serves WebFinger ( The endpoint otherwise behaves as before, with these changes:
Custom code that refers to |
Follow these steps to upgrade a site of OpenAM servers.
During the upgrade process, you must take the OpenAM servers in the site out of production, instead redirecting client application traffic elsewhere. This is required because upgrade involves making changes to OpenAM’s configuration model. If the upgrade fails, you must be able to roll back before the configuration changes impact other sites.
|
Do not perform an upgrade by deploying the new version and then importing an existing configuration by running the |
-
Prepare your customized OpenAM server
.warfile. -
Back up your deployment.
-
Route client application traffic to another site during the upgrade.
-
For servers in the site, stop OpenAM, or if necessary stop the container where OpenAM runs.
-
For servers in the site, deploy your customized server .war file.
When you deploy the new
.warfile, you might have to delete working files left by the old installation. For example, if you deploy on Apache Tomcat, replacing/path/to/tomcat/webapps/openam.war, then also recursively delete the/path/to/tomcat/webapps/openam/and/path/to/tomcat/work/Catalina/localhost/openam/directories before restarting the server. -
For servers in the site, restart OpenAM or the container where it runs.
-
To upgrade the data in the configuration store, perform one of the following actions in one of the servers in the site:
-
Navigate to the OpenAM URL, for example
https://openam.example.com:443/openam, and follow the instructions in the Upgrade Wizard for an interactive upgrade. -
Use the
openam-upgrade-tool-16.1.4.jartool for an unattended upgrade:-
Install the
openam-upgrade-tool-16.1.4.jartool as described in "To Set Up Configuration Tools" in the Installation Guide. Asampleupgradefile will be expanded in the directory where you install the tool. -
Create a configuration file for the
openam-upgrade-tool-16.1.4.jar. You can use thesampleupgradefile as a template to create a configuration file, for exampleupgrade.properties.An upgrade configuration file may resemble the following:
$ grep -v "^#" upgrade.properties SERVER_URL=http://openam.example.com:8080 DEPLOYMENT_URI=/openam ACCEPT_LICENSES=true -
Upgrade OpenAM by using the tool with the properties file following this example:
$ java -jar openam-upgrade-tool-16.1.4.jar --file upgrade.properties Writing Backup; Done. Upgrading Services New service iPlanetAMAuthPersistentCookieService; Done. New service iPlanetAMAuthOpenIdConnectService; Done. New service OAuth2Provider; Done. New service iPlanetAMAuthDevicePrintModuleService; Done. New service crestPolicyService; Done. New service RestSecurity; Done. New service MailServer; Done. New service dashboardService; Done. New service iPlanetAMAuthOATHService; Done. Add Organization schema to sunFAMSAML2Configuration; Done. Upgrade sunAMAuthHOTPService; Done. Upgrade sunAMAuthADService; Done. Upgrade sunAMAuthOAuthService; Done. Upgrade iPlanetAMAuthCertService; Done. Upgrade sunIdentityRepositoryService; Done. Upgrade iPlanetAMPasswordResetService; Done. Upgrade iPlanetAMSessionService; Done. Upgrade iPlanetAMAuthService; Done. Upgrade iPlanetAMAuthLDAPService; Done. Upgrade sunAMAuthDataStoreService; Done. Upgrade AgentService; Done. New sub schema sunIdentityRepositoryService; Done. New sub schema AgentService; Done. Delete service sunFAMLibertyInteractionService; Done. Delete service sunFAMLibertySecurityService; Done. Creating entitlement application type crestPolicyService; Done. Creating entitlement application crestPolicyService; Done. Re-enabling Generic LDAPv3 Data Store; Done. Upgrading data store embedded; Done. Updating Platform Properties; Done. Writing Upgrade Log; Done. Upgrade Complete.For additional information about the command-line tool, see the reference documentation for upgrade.jar(1) in the Reference.
-
Restart OpenAM or the container where it runs.
-
-
-
(Optional) If you installed OpenAM using an external directory server as the configuration store, add an access control instruction (ACI) to the external directory to give the OpenAM administrative user server-side sorting privileges.
The ACI should be similar to the following:
aci: (targetcontrol="1.2.840.113556.1.4.473")(version 3.0;acl "Allow server-side sorting"; allow (read)(userdn = "ldap:/// uid=openam,ou=admins,dc=example,dc=com");)See "Preparing an External Configuration Data Store" in the Installation Guide for more information about using an external directory server as the OpenAM configuration store.
-
(Optional) If you want to configure the upgraded system for the Core Token Service (CTS), read "Configuring the Core Token Service" in the Installation Guide.
-
Referral policies are not supported in OpenAM 16.1.4. If your OpenAM deployment has referral policies, the following warning message will appear when you upgrade your OpenAM server to OpenAM 16.1.4:
Referrals found that require removingOpenAM will take the following actions during the upgrade:
-
Removing all referral policies from your OpenAM configuration.
-
Copying resource types and policy sets associated with removed referral policies to the realms targeted by the referral policies.
For example, suppose you had an OpenAM 12 deployment with a referral policy in realm A, and that referral policy referred to policies in realm B. During an upgrade, OpenAM would delete the referral policy in realm A and copy all the resource types and policy sets associated with the deleted referral policy from realm A to realm B.
After upgrading to OpenAM 16.1.4, you are responsible for reconfiguring OpenAM so that policy evaluation that previously depended upon referrals continues to function correctly. You might need to take one or both of the following actions:
-
Reconfiguring your policy agent with the realm and policy set [1] that contain policies to be evaluated when that agent requests a policy decision from OpenAM. Previously, you might have configured the agent to use a realm that contained a referral policy. Because referral policies are not supported in OpenAM 16.1.4, this is no longer possible.
For more information about configuring an agent with a realm and policy set, see "Working With Realms and Policy Agents" in the Administration Guide.
-
Copying or moving a policy or a group of policies. OpenAM 16.1.4 has new REST API endpoints that let you copy and move policies. This functionality might be helpful when migrating away from policy deployments that use referral policies. For more information about the REST endpoints that let you copy and move policies, see "Copying and Moving Policies" in the Developer’s Guide.
-
-
Validate that the service is performing as expected.
-
Allow client application traffic to flow to the upgraded site.
After upgrade from OpenAM 11.0.x, all OAuth 2.0 client configurations inherit the default response types:
-
code -
token -
id_token -
code token -
token id_token -
code id_token -
code token id_token
-
For each OAuth 2.0 client configuration, edit the list of response types to remove any that are not supported or not required.
-
For each OAuth 2.0 client configuration, update the client password.
As part of a fix for OpenID Connect ID Token signing, the password storage format for OAuth 2.0 clients has changed. OpenAM now stores client passwords using reversible encryption. OpenAM 11.0 stores client passwords using a one-way hash algorithm, and therefore the passwords cannot be recovered.
You can update the client password by using either OpenAM console or the
ssoadm update-agentcommand with the--attributevaluesoption to update the value of theuserpasswordattribute.
If you configured one or more JDBC audit event handlers in OpenAM 13.0.x, make the following changes to the audit tables' schema:
-
Run the following command on Oracle databases that support OpenAM audit event handlers:
ALTER TABLE am_auditaccess ADD (response_detail CLOB NULL);This command adds the
response_detailcolumn to theam_auditaccesstable. -
Run the following commands on MySQL databases that support OpenAM audit event handlers:
ALTER TABLE audit.am_auditconfig CHANGE COLUMN configobjectid objectid VARCHAR(255); ALTER TABLE audit.am_auditaccess ADD COLUMN response_detail TEXT NULL;The commands change the name of the
configobjectidcolumn in theam_auditconfigtable toobjectidand add theresponse_detailcolumn to theam_auditaccesstable. -
If you use databases other than Oracle or MySQL to support OpenAM audit event handlers, review their schema.
If the
am_auditconfigtable has a column namedconfigobjectid, change that column’s name toobjectid.If the
am_auditaccesstable does not have a column namedresponse_detail, add that column to the table’s schema.