我试图用外部声明来创建用户,但是有些地方是错误的。我将我的声明添加到scim2 2-schema-tension.config中,并添加到外部索赔和本地索赔中,但是API对我的请求的响应是:
{
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:Error"
],
"detail": "Error in adding the user: testoviy22@mail.ru to the user store.",
"status": "500"}
我有原木
: ERR_13735_ELEMENT_FOR_OID_DOES_NOT_EXIST ATTRIBUTE_TYPE for OID comment does not exist!]; remaining name 'mail=testoviy22@mail.ru'
at java.naming/com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3280)
at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3205)
at java.naming/com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2996)
at java.naming/com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:452)
at java.naming/com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:299)
at java.naming/com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:217)
at org.wso2.carbon.user.core.ldap.UniqueIDReadWriteLDAPUserStoreManager.persistUser(UniqueIDReadWriteLDAPUserStoreManager.java:312)
... 73 more请求样本:
{
"name": {
"familyName": "Zubenko",
"givenName": "Michael"
},
"password": "qwerty",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"comment": "test"
},
"userName": "testoviy22@mail.ru"}
发布于 2022-09-26 15:21:08
似乎您正在使用LDAP服务器作为您的主用户存储库,而且该服务器不支持名为“注释”的属性--参见https://is.docs.wso2.com/en/latest/references/extend/provisioning/extend-scim2-user-schemas/#map-the-custom-claim中的注释
只有在使用JDBC时,才能使用单词"customClaim“(或任何其他首选词)作为映射属性,因为如果用户存储中不存在JDBC,则JDBC将自动创建一个新属性。但是,如果您使用的是LDAP或Active,则必须使用已经存在于用户存储区()中的属性。
将本地声明的映射属性更改为LDAP模式中的一些有效属性
https://stackoverflow.com/questions/73856225
复制相似问题