Configure WCF host for windows integrated security
I have WCF service hosted on IIS7.5 running as anonymous - authentication, Please let me know the configuration/开发者_C百科steps to run on windows integrated security. Thanks
Well the nice thing about NetTcpBinding is that it is secured using Transport security, Windows authentication by default. So all you need to do is use it. Your server binding would look something like this:
<service name="YourServiceNameHere">
<host>
<baseAddresses>
<add baseAddress="net.tcp://machineName/VirtualDirectory/"/>
</baseAddresses>
</host>
<endpoint
address=""
binding="netTcpBinding"
contract="YourServiceContractHere" />
</service>
Here is an MSDN article that goes more in depth. In IIS, you need to enable net.tcp, and enable Windows authentication.
精彩评论