【问题标题】:Connection Issues When Disabling Security禁用安全性时的连接问题
【发布时间】:2011-10-24 19:47:52
【问题描述】:

我正在使用 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 缓存服务通过所有缓存主机上的防火墙。 请稍后重试。)

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

【问题讨论】:

    标签: appfabric


    【解决方案1】:

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

    【讨论】:

    • 它最终成为在经典的 ASP Web 应用程序中运行 appfabric 缓存 API 的安全问题。不过感谢您的提示。
    猜你喜欢
    • 1970-01-01
    • 2012-11-28
    • 2010-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-27
    • 2013-08-03
    • 1970-01-01
    相关资源
    最近更新 更多