禁用安全性时的连接问题
我正在尝试 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须重新启动集群才能将新设置应用到服务器。
You have to restart the cluster in order to apply the new settings to the server.