Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force a .net WCF client to use NTLM in an basicHttpBinding?

right now I have the security node defined like this:

<security mode="TransportCredentialOnly">
    <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
    <message clientCredentialType="UserName" algorithmSuite="Default" />
</security>

Im getting the following error:

The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM'.

like image 703
abudker Avatar asked Jul 15 '09 21:07

abudker


1 Answers

Change your clientCredentialType to "Ntlm".

like image 80
JP Alioto Avatar answered Sep 22 '22 09:09

JP Alioto