简体   繁体   中英

Create group/role in wso2 IS with SCIM to ldap

In WSo2 Is I have 2 user stores. one primary second for ldap I tried to create a group with SCIM to ldap I went through http://hasini-gunasinghe.blogspot.in/2012/11/wso2-identity-server-as-scim-service.html .

succeeded for user creation to ldap(gave "userName": "ldap/testuser") , group creation to primary store also succeeded. But group creation to LDAP fails ("displayName": "ldap\\engineer") with syntax error.

If you are getting syntax error something like following. There can be an issue in decoding the JSON request that you have send.

Request is unparseable, syntactically incorrect, or violates schema

When multiple user stores are used. You may use the "/" character to separate the domain in your JSON request. Then you can not use double quotes with the user/role name. You need to use single quotes. Such as following

--data "{"schemas":[],"userName":'foo/user1',"password":"test"}"

Also in your request, It has been used the "\\" character which is not the domain separator.

("displayName": "ldap\\engineer")

For further investigation, you can update the question with exact error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM