Prevent failed logon attempt window after failing to supply proper credentials to a remote desktop server using Network Level Authentication

前端 未结 1 1450
悲&欢浪女
悲&欢浪女 2021-01-18 04:21

I am using the \'Microsoft Terminal Services Control Type Library\' to establish a connection to a remote desktop server. I am looking for a way to prevent or suppress the \

相关标签:
1条回答
  • 2021-01-18 04:44

    First off, you really need to make sure your test environment uses the latest update for RDP, especially if it's Windows 7 - just run Windows Update.

    Next, focus on this line:

        ocx.EnableCredSspSupport = True
    

    It is enabling a security support provider. I'm not an expert in the matter, but probably there is an internal routine saying:

    Load locally stored credentials; if there aren't such - ask the user then crypt, hash, bla-bla, and store them locally, in order to use them next time

    At this point the dialog, asking for credentials is popped up. I don't think you can influence this behavior, but, fortunately you can influence whether the provider takes place in the picture or not. So set this to False and see what happens.

    0 讨论(0)
提交回复
热议问题