Exception WSO2 Identity Server-LDAP以只读模式工作,但设置为false
Exception WSO2 Identity Server-LDAP以只读模式工作,但设置为false,exception,ldap,wso2,wso2is,claims,Exception,Ldap,Wso2,Wso2is,Claims,false-这在我的身份服务器的usr-mgt.xml中设置 当我尝试调用设置用户声明值的方法-storeManager.setUserClaimValue(字符串用户名、字符串claimURI、字符串claimValue、字符串profileName)时,会出现以下异常: org.wso2.carbon.user.core.UserStoreException:用户存储以只读模式运行。无法写入用户存储。 我错过什么了吗 如果用户商店管理器类上的LDAP是ReadWrite,请在 class=“
false
-这在我的身份服务器的usr-mgt.xml中设置
当我尝试调用设置用户声明值的方法-storeManager.setUserClaimValue(字符串用户名、字符串claimURI、字符串claimValue、字符串profileName)时,会出现以下异常:
org.wso2.carbon.user.core.UserStoreException:用户存储以只读模式运行。无法写入用户存储。
我错过什么了吗 如果用户商店管理器类上的LDAP是ReadWrite,请在 class=“org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager”
如果用户商店管理器上的LDAP类是只读的,请在
class=“org.wso2.carbon.user.core.ldap.ReadOnlyDapUserStoreManager您正在使用的UserStoreManager是什么?这是我使用的代码:UserRealm realm=WSRealmBuilder.createWSRealm(Constants.SERVER\u URL,cookie,Constants.CONFIG\u CONTEXT);UserStoreManager storeManager=realm.getUserStoreManager();我在AuthenticationAdminStub.login()之后获得cookie字符串是的,如果要执行写入操作,必须使用ReadWriteDapUserStoreManager。