When trying to connect to a Windows server using CA PAM RDP Gateway, ,the following error is obtained
An authentication error has occured (Code: 0x80070057)
and connection fails. This occurs with no credentials injected in the remote connection
CA PAM 4.2.X
This is a know issue under the following circumstances:
"Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)"
This is described in the CA PAM 4.2.0 documentation
See section PAM Gateway for RDP Overview where it is mentioned explicitly that
To support RDP desktop client sessions on Windows target devices that are configured with the Allow connections only from computers running Remote Desktop with Network Level Authentication RDP-TCP access method setting, you must configure a corresponding Windows target account. For more information, see Configure Login Options for Windows Target Devices
Either configure a target account for the device you are trying to access through CA PAM RDP Gateway and associate it to the device and connection before attempting i again or- in windows- clear the checbox for "Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended)" in Remote Desktop Configuration under the Windows target device Control Panel