Remote Access OpenID - ITATS894E An Unhandled Exception has Occurred
Symptom
When a Idira Remote Access Onboarded Vendor is trying to login for the first time into the PVWA portal the following message may be displayed on the screen on the URL:
ITATS894E An Unhandled Exception has Occurred
Environment
N/A Remote Access (formerly Alero) Password Vault Web Access;Vault Server
Any PAM Self-Hosted environment that has Remote Access configured with OpenID Application.
Cause
The cause for this issue is that the Remote Access LDAP Integration was not fully done correctly or some steps are missing, the most common causes are:
- The VendorLDAP certificate was not installed on the Vault Server
- The "hosts" file entry for the Remote Access connector was not configured
- The LDAP Directory was not configured correctly on the PVWA
For all the causes mentioned above you can check if that is the case by going to: PVWA > Administrator > Configuration Options > LDAP Integration > Directories
Once you are here try to save the current settings by clicking on "Apply", the following message should appear on the bottom:
Failed to connect to host, Reason: Failed to connect to LDAP host "<connector>" with user "cn=VaultUser,dc=alero,dc=local". Code (21,81)(21)
Resolution
According to the causes described above I will provide the most probably solution for each one:
1. The VendorLDAP certificate was not installed on the Vault Server
-
- Go to the Vault Server component and open the "certlm.msc"
- Go to "Trusted Root Certification Authorities > Certificates"
- Check if you have a certificate here named "Alero Site '<site-name>'"
- If that is not the case then go back to the Remote Access, copy the certificate from "show-ldap-config" inside the Remote Access CLI, save into a ".cer" file and install on the Vault Server
- To install make sure that you are installing into the Local Machine and on the Trusted Root Certification Authorities store
- Go back to the certificates manager and make sure the certificate was installed correctly and is valid
2. The "hosts" file entry for the Remote Access connector was not configured
-
- While running the "show-ldap-config" on the Remote Access CLI the LDAP Hostname is one of the parameters shown on this list, this same name should also be configured on the Vault Server hosts file (C:\Windows\System32\drivers\etc\hosts)
- Also make sure that the IP configured is reachable from the Vault Server by running the following command from the PowerShell: Test-NetConnection <ldap-hostname> -Port 636
- If the test above fail you may need to open a temporary outbound firewall rule just for testing
- Now if even with the LDAPs port open on the firewall the tests are failing, make sure that those 2 servers are allowed to communicate over port 636
3. The LDAP Directory was not configured correctly on the PVWA
-
- Verify that all the parameters configured under the "PVWA > Administrator > Configuration Options > LDAP Integration > Directories > VendorLDAP '<site>'" are correct
- You can refer to the documentation below on step 4 to verify this:
- https://docs.cyberark.com/remote-access-standard/latest/en/content/admin/aleroldap-ha.htm#ConfigureVendorLDAPmanuallyinthePVWAandPrivateArk
- After the parameters are fixed, try to click "Apply" once more to save the current LDAP Integration settings