PSM - RDP connections result in "An authentication error has occurred. (Code: 0x80004005)
Symptom
encountered "An authentication error has occurred. (Code: 0x80004005)" when they initiate a PSM connection to a Windows 2008 R2 server through PVWA . This connection issue only occurs in some of their target servers.
The domain account that is being used to connect has local administrator rights on the target server and direct RDP is successful using the accounts to the target server.
Environment
11.1;11.2;11.3;11.4;11.5;11.6;11.7;14.4 Privileged Access Manager (PAM, self-hosted) PSM PSM server Windows 2016
Target server Windows 2008 r2
Cause
PSM and target server doesn't support the same level of encryption.
During PSM hardening process, it will disable to the encryption lower than TLS 1.2.However some OS such as Windows 2008 doesn't support TLS 1.2 by default thus the connection failed during the handshake process.
Resolution
Option 1 : Enable TLS 1.0 on PSM server
1) Go to registry editor
2) HKLM SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols
3) in BOTH the Server and Client subkey set DisabledByDefault to 0 and Enabled to 1
4) Exit the registry and reboot your server
Alternatively Options 2 ( recommended) : enable TLS 1.2 on target Windows server.
1) Please ensure Windows server 2008R2 , 2012 or Windows 7 has been patched with kb3140245
2) Open registry editor HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols
3) Right-click on the empty space in the pane on the right side and choose New > Key
4) Name the new key TLS 1.2
5) Right-click the empty space on the right side again and add two new keys named Client and Server
6) Select the Client key, right-click on the right side, and select New -> DWORD (32-bit) Value
Name the DWORD DisabledByDefault, right-click on it, and select Modify. The base should be set to Hexadecimal and the value set to 0:
7) Create a new DWORD with the name Enabled. The base should be set to Hexadecimal and the value set to 1
8) Repeat the process for the Server key, creating the same DWORDS with the same values
9)Exit the registry and reboot your server