SharpRDPCheck icon indicating copy to clipboard operation
SharpRDPCheck copied to clipboard

Authentication Error

Open timwhitez opened this issue 3 years ago • 2 comments

InnerException: System.ComponentModel.Win32Exception (0x80004005): 无法连接到本地安全机构

修改internal static bool enableNLA = false;

提示The server requires that the client support Enhanced RDP Security with CredSSP

域内机器,已手工修改了Options.Domain

timwhitez avatar Nov 17 '21 10:11 timwhitez

需要更多细节,我这边的环境测试都没有问题。

3gstudent avatar Nov 24 '21 00:11 3gstudent

@3gstudent execute RDPConf.exe and configure "Authentication Mode" as "Network Level Authentication" (NLA), so you can reproduce the issue. "The server requires that the client support Enhanced RDP Security with CredSSP" is actually a correct reply in such case.

However, there is an issue, when you configure "Authentication Mode" as "GUI Authentication Only". When static bool enableNLA = false; the SharpRDPCheck always returns true. When enableNLA = true, the SharpRDPCheck also always returns true, regardless of whether the password is correct.

Dr-Hex avatar Dec 17 '22 01:12 Dr-Hex