By: Shihab Uddin user 08 Mar 2018 at 5:10 a.m. CST

7 Responses
Shihab Uddin gravatar
I am trying to use Import/Export Attributes LDIF to copy some custom attributes from one Gluu instance to another. I have exported the attributes from one Gluu instance and tried to import them into another Gluu instance. In the second Gluu instance when I click Validate button it says: > Invalid LDIF file. Validation failed. What am I doing wrong? Here is the LDIF file that I am trying to import: ``` dn: inum=@!C6F1.6ADE.4777.2F1B!0001!3B73.1218!0005!9472,ou=attributes,o=@!C6F1.6ADE.4777.2F1B!0001!3B73.1218,o=gluu oxValidation: {"minLength":null,"maxLength":null,"regexp":""} gluuAttributeType: string description: The home publication of the user displayName: Home Publication gluuAttributeEditType: admin inum: @!C6F1.6ADE.4777.2F1B!0001!3B73.1218!0005!9472 gluuAttributeName: homePublication gluuAttributeOrigin: cuePerson oxAuthClaimName: homePublication oxSCIMCustomAttribute: true gluuSAML1URI: urn:gluu:dir:attribute-def:homePublication gluuStatus: active objectClass: top objectClass: gluuAttribute oxMultivaluedAttribute: false gluuSAML2URI: urn:oid:1.3.6.1.4.1.48710.1.3.1003 ```

By Thomas Gasmyr Mougang staff 08 Mar 2018 at 11:57 a.m. CST

Thomas Gasmyr Mougang gravatar
Hi **Shihab**, We are here to help you and to help in a more efficient way, we need as much information as possible. If we understand well: You have two Gluu instance running and want to copy some attribute from one instance to another. > I click Validate button it says .. Which button are you talking about here? Please provide all information that you think is relevant.

By Thomas Gasmyr Mougang staff 10 Mar 2018 at 7:26 a.m. CST

Thomas Gasmyr Mougang gravatar
Hi **Shihab**, Still need assistance?

By Thomas Gasmyr Mougang staff 13 Mar 2018 at 12:59 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hi Shihab, Closing this ticket for inactivity. Feel free to reopen it when you want.

By Shihab Uddin user 14 Mar 2018 at 5:35 p.m. CDT

Shihab Uddin gravatar
Sorry for the late reply. I was away for a couple of days. Here is the screenshot of the **Validate** button I was talking about. ![The validate button](https://www.dropbox.com/s/7s6qe7dirrdknqr/Screenshot%202018-03-14%2023.29.44.png?dl=1 "The validate button")

By Thomas Gasmyr Mougang staff 15 Mar 2018 at 4:24 a.m. CDT

Thomas Gasmyr Mougang gravatar
Hi **Shihab**, The first line of your ldiff file is this: ``` dn: inum=@!C6F1.6ADE.4777.2F1B!0001!3B73.1218!0005!9472,ou=attributes,o=@!C6F1.6ADE.4777.2F1B!0001!3B73.1218,o=gluu ``` Change this `o=@!C6F1.6ADE.4777.2F1B!0001!3B73.1218` to match the correct value. The import failed because there isn't an organisation with id `@!C6F1.6ADE.4777.2F1B!0001!3B73.1218` under `gluu` organisation on the instance where the import is apply. So you can use a ldap browser like `jxplorer` to find the right value for an organisation under `gluu` hierarchy. Bellow is an example: I want to import your ldif file in my Gluu instance. We my jxplorer i can see that the correct value is `@!619C.061B.1A7E.5AF4!0001!4377.CD0A`. Screenshot [here](https://pasteboard.co/HbZu5a9.png) So i change the first line of your ldif file to match my ldap structure like this. ``` dn: inum=@!C6F1.6ADE.4777.2F1B!0001!3B73.1218!0005!9472,ou=attributes,o=@!619C.061B.1A7E.5AF4!0001!4377.CD0A,o=gluu oxValidation: {"minLength":null,"maxLength":null,"regexp":""} gluuAttributeType: string description: The home publication of the user displayName: Home Publication gluuAttributeEditType: admin inum: @!C6F1.6ADE.4777.2F1B!0001!3B73.1218!0005!9472 gluuAttributeName: homePublication gluuAttributeOrigin: cuePerson oxAuthClaimName: homePublication oxSCIMCustomAttribute: true gluuSAML1URI: urn:gluu:dir:attribute-def:homePublication gluuStatus: active objectClass: top objectClass: gluuAttribute oxMultivaluedAttribute: false gluuSAML2URI: urn:oid:1.3.6.1.4.1.48710.1.3.1003 ``` And then import the modified ldif file. Hope that help. Thanks

By Shihab Uddin user 15 Mar 2018 at 5:22 a.m. CDT

Shihab Uddin gravatar
Thanks for an elaborate answer. I will try that. By the way, it should documented [here](https://gluu.org/docs/ce/3.1.2/admin-guide/oxtrust-ui/#importexport-attribute-ldif).

By Shihab Uddin user 15 Mar 2018 at 5:25 a.m. CDT

Shihab Uddin gravatar
That worked fine. Thanks again.