By: Balasubramanian contus user 20 May 2019 at 8:25 a.m. CDT

2 Responses
Balasubramanian contus gravatar
Hi, We deployed the gluu server by docker (4 nodes) with cluster one ldap manager and 3 ldap worker. We tried to add a new user with scim api "http://doamin.com/identity/restv1/scim/v2/Users", it is created in some node's (2 and 4), But some node's (1 and 3) are throwing error. **Request Payload:** ``` { "schemas": [ "urn:ietf:params:scim:schemas:extension:gluu:2.0:User", "urn:ietf:params:scim:schemas:core:2.0:User" ], "userName": "something@mailinator.com", "externalId": "36", "name": { "givenName": "something", "familyName": "sometghing" }, "displayName": "something", "active": "true", "password": "adminpass", "phoneNumbers": [ { "value": "9698789898" } ], "emails": [ { "value": "something@mailinator.com" } ], "roles": [ { "value": "admin", "primary": "true" } ], "urn:ietf:params:scim:schemas:extension:gluu:2.0:User": { "uniqueUserId": "36", "mobile": "9698789898", "street": "1", "roomNumber": "003", "company": "someorg", "customerId": "someorg", "countryCode": "91" } } ``` **Error response:** `{ "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "status": "500", "scimType": "", "detail": "Unexpected error: Failed to persist entry: inum=@!63E7.D8F6.D494.9C57!0001!C6ED.CA15!0000!0007.6A88.6AB0.6C6E,ou=people,o=@!63E7.D8F6.D494.9C57!0001!C6ED.CA15,o=gluu" }` Please provide the appropriate solution. Thanks.

By William Lowe user 20 May 2019 at 8:42 a.m. CDT

William Lowe gravatar
Gluu Server DE is licensed under Gluu Support, which means you need an active support contract for usage of the software, and also means we do not provide community support.

By Yamil Díaz Aguirre user 18 Jun 2019 at 11:23 a.m. CDT

Yamil Díaz Aguirre gravatar
Don't worry, I can help you. You need to set properly LDAP SYNTAX in your schema definition. For instance, if you would like to add an attribute of Directory String type, you should use the SYNTAX `1.3.6.1.4.1.1466.115.121.1.15` according to the [RFC4517](https://tools.ietf.org/html/rfc4517) standard. ``` Syntax OBJECT IDENTIFIER ============================================================== Attribute Type Description 1.3.6.1.4.1.1466.115.121.1.3 Bit String 1.3.6.1.4.1.1466.115.121.1.6 Boolean 1.3.6.1.4.1.1466.115.121.1.7 Country String 1.3.6.1.4.1.1466.115.121.1.11 Delivery Method 1.3.6.1.4.1.1466.115.121.1.14 Directory String 1.3.6.1.4.1.1466.115.121.1.15 DIT Content Rule Description 1.3.6.1.4.1.1466.115.121.1.16 DIT Structure Rule Description 1.3.6.1.4.1.1466.115.121.1.17 DN 1.3.6.1.4.1.1466.115.121.1.12 Enhanced Guide 1.3.6.1.4.1.1466.115.121.1.21 Facsimile Telephone Number 1.3.6.1.4.1.1466.115.121.1.22 Fax 1.3.6.1.4.1.1466.115.121.1.23 Generalized Time 1.3.6.1.4.1.1466.115.121.1.24 Guide 1.3.6.1.4.1.1466.115.121.1.25 IA5 String 1.3.6.1.4.1.1466.115.121.1.26 Integer 1.3.6.1.4.1.1466.115.121.1.27 JPEG 1.3.6.1.4.1.1466.115.121.1.28 LDAP Syntax Description 1.3.6.1.4.1.1466.115.121.1.54 Matching Rule Description 1.3.6.1.4.1.1466.115.121.1.30 Matching Rule Use Description 1.3.6.1.4.1.1466.115.121.1.31 Name And Optional UID 1.3.6.1.4.1.1466.115.121.1.34 Name Form Description 1.3.6.1.4.1.1466.115.121.1.35 Numeric String 1.3.6.1.4.1.1466.115.121.1.36 Object Class Description 1.3.6.1.4.1.1466.115.121.1.37 Octet String 1.3.6.1.4.1.1466.115.121.1.40 OID 1.3.6.1.4.1.1466.115.121.1.38 Other Mailbox 1.3.6.1.4.1.1466.115.121.1.39 Postal Address 1.3.6.1.4.1.1466.115.121.1.41 Printable String 1.3.6.1.4.1.1466.115.121.1.44 Substring Assertion 1.3.6.1.4.1.1466.115.121.1.58 Telephone Number 1.3.6.1.4.1.1466.115.121.1.50 Teletex Terminal Identifier 1.3.6.1.4.1.1466.115.121.1.51 Telex Number 1.3.6.1.4.1.1466.115.121.1.52 UTC Time 1.3.6.1.4.1.1466.115.121.1.53 ``` **your.ldif** ``` attributeTypes: ( 1.3.6.1.4.1.48710.1.4.52 NAME 'organizationUuid' DESC 'Organization UUID' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Gluu created attribute' ) ``` Don't forget to restart your OpenDJ service.