Windows client authentication

I need to use windows authentication withbasicHttpBinding

On the binding I specified

<securitymode="TransportCredentialOnly">

<transportclientCredentialType="Windows"proxyCredentialType="None"

realm="" />

<messageclientCredentialType="UserName"algorithmSuite="Default" />

</security>

IIS is configured with IWA.

I get

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

I tried to limit the authentication on IIS only with NTLM but I get

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

Any idea on how to use windows authentication with HTTP?

I set the credential with

client.ClientCredentials.Windows.ClientCredential = (NetworkCredential)CredentialCache.DefaultCredentials;

Is it correct?

Carlo Folini

[2164 byte] By [Crasch] at [2008-1-1]

Visual Studio Orcas

Site Classified