K
Keesoo
IN our workgroup intranet environment,
- We want to use NetTcpBinding for transport security.
- We want clients authenticated by NTLM (i.e.
NetTcpBinding.Security.Transport.ClientCredentialType =
TcpClientCredentialType.Windows)
Because NTLM doesn't support mutual auth (server is not authenticated in
this case), is there a way to configure NetTcpBinding so server auth is using
server's certificate (trusted by all clients) and client auth is using NTLM?
Any suggestions are highly appreciated.
The following doesn't work - cert is not used
NetTcpBinding tcpBinding = new NetTcpBinding ();
tcpBinding.Security.Mode = SecurityMode.Transport;
tcpBinding.Security.Transport.ClientCredentialType =
TcpClientCredentialType.Windows;
serviceHost.Credentials.ServiceCertificate.SetCertificate (
StoreLocation.LocalMachine,
StoreName.My,
X509FindType.FindByThumbprint,
machineCert.Thumbprint
);
serviceHost.AddServiceEndpoint (
typeof ( IContract),
tcpBinding,
tcpUrl);
- We want to use NetTcpBinding for transport security.
- We want clients authenticated by NTLM (i.e.
NetTcpBinding.Security.Transport.ClientCredentialType =
TcpClientCredentialType.Windows)
Because NTLM doesn't support mutual auth (server is not authenticated in
this case), is there a way to configure NetTcpBinding so server auth is using
server's certificate (trusted by all clients) and client auth is using NTLM?
Any suggestions are highly appreciated.
The following doesn't work - cert is not used
NetTcpBinding tcpBinding = new NetTcpBinding ();
tcpBinding.Security.Mode = SecurityMode.Transport;
tcpBinding.Security.Transport.ClientCredentialType =
TcpClientCredentialType.Windows;
serviceHost.Credentials.ServiceCertificate.SetCertificate (
StoreLocation.LocalMachine,
StoreName.My,
X509FindType.FindByThumbprint,
machineCert.Thumbprint
);
serviceHost.AddServiceEndpoint (
typeof ( IContract),
tcpBinding,
tcpUrl);