WSO2 Identity Server - LDAP以只读模式工作,但设置为false

时间:2012-08-01 08:03:31

标签: exception ldap wso2 wso2is claims

<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.

我错过了什么吗?

1 个答案:

答案 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