PVWA - Error Invalid value <ipaddress:xxxxx> for ServiceName when login to PVWA
116
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 15:56 PM
Symptom
When trying to login via PVWA, login fails and an error is thrown:
Invalid value <ipaddress:xxxxx> for ServiceName.
Environment
12.2;12.6;13.0;13.2;14.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA
Cause
The issue occurs in PVWA Load Balance environment and it is caused by the Load Balancer not passing the expected IP Address format (xxx.xxx.xxx.xxx) in the LoadBalancerClientAddressHeader parameter.
Document Reference:
https://docs.cyberark.com/pam-self-hosted/latest/en/Content/PAS%20INST/PVWA-install-multiple-PVWA-env.htm?tocpath=Installation%7CInstall%20PAM%20-%20Self-Hosted%7CInstall%20PVWA%7C_____8#ConfigurethePVWAtoworkwiththeloadbalancer
For example if HTTP_X_Forwarded_For is used as the LoadBalancerClientAddressHeader, the configuration in web.config is:
<add key="LoadBalancerClientAddressHeader" value="HTTP_X_Forwarded_For" />
You may then see the following log and error in PVWA.App.log:
2024-04-30 10:01:22,194 || TRACE || 27 || || || 2dbbc0a0-9364-407c-b1c8-4ec57070bdc2 || Selectd ForwardClientIpKey: [HTTP_X_Forwarded_For] || ||
2024-04-30 10:01:22,194 || TRACE || 27 || || || 2dbbc0a0-9364-407c-b1c8-4ec57070bdc2 || EPVSW041D Got web service client IP 10.11.12.13:62191 || ||
2024-04-30 10:01:22,194 || TRACE || 27 || || || 2dbbc0a0-9364-407c-b1c8-4ec57070bdc2 || CASW036D Log on from IP 10.11.12.13:62191 || ||
…
2024-04-30 10:01:22,288 || ERROR || 27 || || || 2dbbc0a0-9364-407c-b1c8-4ec57070bdc2 || ITATS768E Invalid value 10.12.13.14:62191 for ServiceName. (Vault [CAMainVault] user [<user>]) || || Casos
In the example above, Load Balancer is passing "10.12.13.14:62191" in HTTP_X_Forwarded_For instead of "10.12.13.14".
Resolution
Configure Load Balancer to pass the client IP in the correct IP Address format (xxx.xxx.xxx.xxx) in the LoadBalancerClientAddressHeader parameter.