SAML – “Authentication Failure for User”
Symptom
When attempting to login to PVWA with SAML, and after successfully entering the IdP credentials, the PVWA login page shows an error - 'Authentication Failure for User....'
Environment
10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access Password Vault Web Access Authentications
Cause
This is most likely due to the wrong nameid claim format being sent from the IdP
The user name shown in the error message must match a username already existing in the Vault, or must match the value of the UserLogonName property in LDAP
Resolution
If the user name in the error message is in the format user@domain.com, check the MircrosoftADProfile.ini on Options - LDAP Integration - LDAP - Profiles in PVWA. The UserLogonName property must be set to userPrincipalName for this to work
By default this property in MicrosoftADProfile.ini is set to sAMAccountName, so it will be much easier to set the nameid claim from the IdP to a property that matches the sAMAccountName value in LDAP, or to that of the existing user in the Vault. If the user name in the error message is in the format user@domain.com, then the nameid claim set a the IdP is likely to be set to userPrinciple Name or Email address or similar
If the user name in the error message is just a straight user name, then the UserLogonName property in MicrosoftADProfile.ini may be set to userPrincipalName. Similar to the above, the easiest solution is to change the nameid claim set a the IdP to userPrincipalName or Email address or similar