为Windows集成安全性配置WCF主机 [英] Configure WCF host for windows integrated security

查看:96
本文介绍了为Windows集成安全性配置WCF主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以匿名方式运行的IIS7.5上承载的WCF服务-身份验证,请让我知道要在Windows集成安全性上运行的配置/步骤.谢谢

I have WCF service hosted on IIS7.5 running as anonymous - authentication, Please let me know the configuration/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>

这是一篇MSDN文章,它会更深入.在IIS中,您需要

Here is an MSDN article that goes more in depth. In IIS, you need to enable net.tcp, and enable Windows authentication.

这篇关于为Windows集成安全性配置WCF主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆