How to troubleshoot PSM for Windows SAML User authentication failures
Environment
14.0;14.2 Privileged Access Manager (PAM, self-hosted) PSM
Procedure
For debugging and extra logging, add these parameters to the basic_psm.ini file on the PSM and restart the service:
EnableCredentialProviderLogging=Yes
InitialTraceLevels=1,2,3,4,5,6,7
Then look in the Windows Event Logs > Application.
You may see error messages similar to the following:
PSMCP248E: Failed to authenticate saml user. Reason: 1330
PSMCP269E Failed to open web interface, SAML feature is probably not installed.
You can use the reason code to investigate the authentication failure. The below web page gives a list of error codes and the reasoning behind them:
https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--1300-1699-
For the example above, error code 1330, mapped to 'The password for this account has expired.' And checking the PSMSAML user, the box was unchecked for 'password never expires' - after checking this box the issue was resolved.
Another common error is:
PSMCP248E: Failed to authenticate saml user. Reason: 1385
Where the code 1385 maps to 'Logon failure: the user has not been granted the requested logon type at this computer.' - Then you can check the PSMSAML user has been added to the 'Allow log on locally' and 'Allow log on through Remote Desktop Services' GPO.