gpt4 book ai didi

wcf - 我需要为 net.tcp 服务设置什么 SPN?

转载 作者:行者123 更新时间:2023-12-04 14:21:49 26 4
gpt4 key购买 nike

我在运行本地 Windows 帐户的 Windows 服务中托管了一个 wcf 应用程序。我需要为此帐户设置 SPN 吗?如果是这样,SPN 需要设置的协议(protocol)是什么?我知道如何通过 HTTP 为服务执行此操作,但从未为 net.tcp 执行此操作。

最佳答案

将服务帐户更改为 AD 帐户并注册 SPN,如图所示。使用您自己的服务名称,例如服务

setspn -A fooservice/servermachinename domain\serviceAccountName
setspn -A fooservice/servermachinename.fullyqualifieddomainname domain\serviceAccountName



在客户端配置集中:
<identity>
<serviceprincipalname value="fooservice/servermachinename" />
</identity>

关于wcf - 我需要为 net.tcp 服务设置什么 SPN?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38779/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com