2011-06-15 37 views
0

我有WCF服務託管在IIS7.5上以匿名身份運行 - 身份驗證,請讓我知道在Windows集成安全性上運行的配置/步驟。謝謝爲WCF主機配置windows集成安全

+0

WCF配置步驟或IIS步驟或兩者?你使用什麼綁定?請提供 – BrandonZeider 2011-06-15 13:26:50

+0

。使用Net tcp綁定。 – Yogesh 2011-06-15 13:30:25

+0

對不起,我使用基本的http,我必須改變,以淨TCP – Yogesh 2011-06-15 13:32:36

回答

0

那麼關於NetTcpBinding的好處是,它使用傳輸安全,默認情況下的Windows身份驗證安全。所以你需要做的就是使用它。您的服務器綁定將如下所示:

<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更深入。在IIS中,您需要enable net.tcp,並啓用Windows身份驗證。

IIS screenshot