CAS 6.5 Migration
Pre-requisites
Before you begin your migration, be sure you meet the following pre-requisites:
- A working PAM deployment with the Federated Sign-In experience.
- In order to check the version of CAS you are on, login to PAM and navigate to Management> About and check value under "Authentication" . If you are on CAS 5, the value will be CAS 5.2x.
- An operational PAM deployment with the latest version. Please update to the latest available version before proceeding.
Considerations
-
The user performing the migration will be required to update files and configurations on the PAM host server. Administrative privileges are required.
-
We highly recommend deploying a test instance of PAM that mirrors your production instance as closely as possible to test the migration (DB type, Federated Sign-In, certificates, MFA/SSO, AD Integration, etc).
-
Once the migration is successful with the test instance you can reproduce the procedure on your production instance.
Please read the entire procedure outlined in the article before beginning. If you have any questions, please contact our Support team: https://support.imprivata.com/.
Migration from CAS 5.2x to CAS 6.5
-
Configure PAM with the Federated Sign-In module and ensure that it is working properly.
-
Login to PAM host server.
-
Execute the following command from $PAM_HOME:
-
Stop the PamManagement (Windows) or the pammanager (Linux) service. PAM will be offline until this procedure is completed.
-
Open a prompt and navigate to the $PAM_HOME directory and delete the old version of CAS:
-
Delete (or move) the file $PAM_HOME/web/webapps/cas.war (move this file outside of $PAM_HOME folder, please do not rename it in the same folder).
-
Delete (or move) the folder $PAM_HOME/web/webapps/cas (move this file outside of $PAM_HOME folder, please do not rename ti in the same folder).
-
Download a new CAS 6.5 file https://bin.xtontech.com/product/pam-cas.65.zip and extract the cas.war to $PAM_HOME/web/webapps.
-
Open the file $PAM_HOME/web/conf/catalina.properties in a text editor. In this file, locate the section that begins with #CAS add the following new parameters:
-
for AzureAD and ADFS integrations add the following line (with the right index):
Copycas.authn.pac4j.saml[0].useNameQualifier=false
-
for ADFS integrations add the following line (with the right index):
Copycas.authn.pac4j.saml[0].sign-service-provider-logout-request=true
-
for ADFS Relaying party add configuration in ADFS Relaying Party Trusts in the tab Endponts add SAML:
-
Save and close the catalina.properties file when you are finished.
-
Start the PamManagement (Windows) or the pammanager (Linux) service and try your updated authentication login.
For Windows deployments:
bin\PamDirectory.cmd SwitchCASVersion web 65
For Unix or Linux deployments:
bin/PamDirectory.sh SwitchCASVersion web 65
Endpoint Type: SAML Logout
Binding: Redirect
Trusted URL: {managed path}/cas/logout
Response URL: {managed path}/cas/logout
Testing CAS 6.5
-
When the service is fully restarted, open your browser, and navigate to the PAM login page.
- Login to PAM.

Rollback from CAS 6.5 to CAS 5.2
-
Stop the PamManagement (Windows) or the pammanager (Linux) service. PAM will be offline until this procedure is completed.
-
Open a prompt and navigate to the $PAM_HOME directory and delete the old version of CAS.
-
Delete (or move) the file $PAM_HOME/web/webapps/cas.war (move this file outside of $PAM_HOME folder, please do not rename it in the same folder).
-
Delete (or move) the folder $PAM_HOME/web/webapps/cas (move this file outside of $PAM_HOME folder, please do not rename it in the same folder).
-
Restore the file cas.war for CAS 5.2 to $PAM_HOME/web/webapps from the backup location or download the latest from:
-
Execute the following command to switch PAM configuration to CAS 5.2:
-
Start the PamManagement (Windows) or the pammanager (Linux) service.
https://bin.xtontech.com/product/pam-cas.zip.
For Windows deployments:
bin\PamDirectory.cmd SwitchCASVersion web 52
For Unix or Linux deployments:
bin/PamDirectory.sh SwitchCASVersion web 52
CAS 6.5 Troubleshooting
Application not Authorized error message
-
Open the file $PAM_HOME/web/conf/catalina.properties in a text editor. In this file, locate the section that begins with #CAS and change the following parameter set it to true:
-
Restart the PamManagement (Windows) or the pammanager (Linux) service.
-
Once PAM is working and you can see the usual CAS login page, back to the file $PAM_HOME/web/conf/catalina.properties in a text editor. Find the section that begins with #CAS and change cas.serviceRegistry.initFromJson parameter back to false:
Copycas.serviceRegistry.initFromJson=false
-
Restart the PamManagement (Windows) or the pammanager (Linux) service.
cas.serviceRegistry.initFromJson=true