【发布时间】:2011-01-13 09:31:06
【问题描述】:
我知道如何为 NTLM 身份验证配置 basicHttpBinding,但不知道如何为 netTcpBinding 做同样的事情。
netTcpBinding 是否支持 NTLM?如果是,如何强制 WCF 服务使用 NTLM?
顺便说一句,由于某种原因,一种众所周知的使用标识元素的方法根本不起作用。我正在寻找这样的东西 - clientCredentialType ="Ntlm" 但对于 tcp。 这是基本的Http设置:
<basicHttpBinding>
<binding name="BasicHttpBinding">
<security mode ="TransportCredentialOnly">
<transport clientCredentialType ="Ntlm"/>
</security>
</binding>
</basicHttpBinding>
【问题讨论】:
-
如果您想包含代码或 XML 的 sn-ps(例如配置),您需要在帖子中突出显示这些行,然后使用编辑器工具栏上的“代码”按钮 (101 010) (或按键盘上的 Ctrl-K)使它们格式化并突出显示语法。否则,您的帖子真的很难阅读,XML 甚至都不会出现!
标签: wcf authentication ntlm nettcpbinding