<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.
我错过了什么吗?
答案 0 :(得分:0)
如果用户存储上的LDAP管理器类是ReadWrite,请在
中的user-mgt.xml上调用以下类类= “org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager”
如果用户存储上的LDAP管理器类是只读的,请在
中的user-mgt.xml上调用以下类类=“org.wso2.carbon.user.core.ldap.ReadOnlyLDAPUserStoreManager