locked
RestClient Authenticator NtlmAuthenticator not work after upgrade the LmCompatibilityLevel value to 5 RRS feed

  • Question

  • Hi Team,

    Hope you are doing well.

    We met an issue after modified the register value to 5 as below for security purpose.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

    LmCompatibilityLevel = 5

    We are using the RestClient to send request to service for authorize purpose and the Authenticator was set as below:

    RestClient client;

    CookieContainer cookie; client.Authenticator=new NtlmAuthenticator();

    client.CookieContainer= cokkie;

    It was worked well before we upgrade the register value from 4 to 5.

    The value 5 means send NTLMv2 response only and refuse LM& NTLM.

    Could you give us some advice how to migrate it from NTLMv1 to NTLMv2 in RestClient request?





    • Edited by Tony Y Jia Thursday, November 19, 2020 10:54 AM
    • Moved by CoolDadTx Thursday, November 19, 2020 2:58 PM Not C# related
    Thursday, November 19, 2020 10:42 AM

All replies

  • This forum is for C#-specific questions only. Your question is related to the third party library RestClient. Unfortunately it is unclear which variant of RestClient you're using. RestSharp is the most popular but there are many others. Nevertheless go to their Github repo and request support for their library from there. They will be better able to help you.

    Michael Taylor http://www.michaeltaylorp3.net

    Thursday, November 19, 2020 2:57 PM