【发布时间】: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