【问题标题】:WSO2 Identity Server - LDAP working in read-only mode but is set to falseWSO2 身份服务器 - LDAP 在只读模式下工作,但设置为 false
【发布时间】:2012-07-30 02:24:51
【问题描述】:

<Property name="ReadOnly">false</Property> - 这是在我的身份服务器的 usr-mgt.xml 中设置的。

当我尝试调用设置用户声明值的方法时 - storeManager.setUserClaimValue(String userName, String claimURI, String claimValue,String profileName) 它给了我这个异常:

org.wso2.carbon.user.core.UserStoreException: User store is operating in read only mode. Cannot write into the user store.

我错过了什么吗?

【问题讨论】:

  • 你使用的 UserStoreManager 是什么?
  • 这是我使用的代码: UserRealm realm = WSRealmBuilder.createWSRealm(Constants.SERVER_URL, cookie, Constants.CONFIG_CONTEXT); UserStoreManager storeManager = realm.getUserStoreManager();我在 AuthenticationAdminStub.login() 之后得到了 cookie 字符串

标签: exception ldap wso2 wso2is claims


【解决方案1】:

如果用户存储管理器类上的 LDAP 是 ReadWrite,请在

中调用 user-mgt.xml 上的以下类

class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager"

如果用户存储管理器类上的 LDAP 是只读的,请在

中调用 user-mgt.xml 上的以下类

class="org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager

【讨论】:

  • 是的,如果你想进行写操作,你必须使用 ReadWriteLDAPUserStoreManager。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-07-22
  • 2012-11-18
相关资源
最近更新 更多