禁用安全性时的连接问题

发布于 2024-12-11 09:57:54 字数 1735 浏览 3 评论 0原文

我正在尝试 AppFabric 安全配置。问题是当我使用标准配置时它工作正常:

配置: Set-CacheClusterSecurity -SecurityMode Transport -ProtectionLevel EncryptAndSign

代码:

var configuration = new DataCacheFactoryConfiguration();
        configuration.Servers = new[]
                                    {
                                        new DataCacheServerEndpoint("server1.domain.net", 22233),
                                        new DataCacheServerEndpoint("server2.domain.net", 22233),
                                        new DataCacheServerEndpoint("server3.domain.net", 22233),
                                    };

        configuration.SecurityProperties = new DataCacheSecurity();

        _factory = new DataCacheFactory(configuration);

当我修改客户端和服务器上的安全配置时,出现错误:

配置:Set-CacheClusterSecurity -SecurityMode None -ProtectionLevel None

代码:

var configuration = new DataCacheFactoryConfiguration();
        configuration.Servers = new[]
                                    {
                                        new DataCacheServerEndpoint("server1.domain.net", 22233),
                                        new DataCacheServerEndpoint("server2.domain.net", 22233),
                                        new DataCacheServerEndpoint("server3.domain.net", 22233),
                                    };

        configuration.SecurityProperties = new DataCacheSecurity(DataCacheSecurityMode.None, DataCacheProtectionLevel.None);

        _factory = new DataCacheFactory(configuration);

错误: 异常:错误代码:子状态:出现临时故障。 请稍后重试。 (一台或多台指定的缓存服务器不可用,这可能是由繁忙的网络或服务器引起的。请确保已在集群上为该客户端帐户授予安全权限,并且允许 AppFabric 缓存服务通过所有缓存主机上的防火墙。 稍后重试。)

唯一的区别是客户端和服务器上的安全配置。

I'm playing around with an AppFabric security configuration. The issue is when I use the standard configuration it works fine:

Configuration:
Set-CacheClusterSecurity -SecurityMode Transport -ProtectionLevel EncryptAndSign

Code:

var configuration = new DataCacheFactoryConfiguration();
        configuration.Servers = new[]
                                    {
                                        new DataCacheServerEndpoint("server1.domain.net", 22233),
                                        new DataCacheServerEndpoint("server2.domain.net", 22233),
                                        new DataCacheServerEndpoint("server3.domain.net", 22233),
                                    };

        configuration.SecurityProperties = new DataCacheSecurity();

        _factory = new DataCacheFactory(configuration);

When I modify the security configuration on both the client and server I get an error:

Configuration: Set-CacheClusterSecurity -SecurityMode None -ProtectionLevel None

Code:

var configuration = new DataCacheFactoryConfiguration();
        configuration.Servers = new[]
                                    {
                                        new DataCacheServerEndpoint("server1.domain.net", 22233),
                                        new DataCacheServerEndpoint("server2.domain.net", 22233),
                                        new DataCacheServerEndpoint("server3.domain.net", 22233),
                                    };

        configuration.SecurityProperties = new DataCacheSecurity(DataCacheSecurityMode.None, DataCacheProtectionLevel.None);

        _factory = new DataCacheFactory(configuration);

Error:
Exception:ErrorCode:SubStatus:There is a temporary failure.
Please retry later. (One or more specified Cache servers are unavailable, which could be caused by busy network or servers. Ensure that security permission has been granted for this client account on the cluster and that the AppFabric Caching Service is allowed through the firewall on all cache hosts.
Retry later.)

The only difference is the security configuration on the client and server.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

°如果伤别离去 2024-12-18 09:57:54

您必须重新启动集群才能将新设置应用到服务器。

You have to restart the cluster in order to apply the new settings to the server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文