Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import / Export Schema #392

Closed
willow9886 opened this issue Nov 15, 2016 · 12 comments
Closed

Import / Export Schema #392

willow9886 opened this issue Nov 15, 2016 · 12 comments
Assignees
Labels
exclude from release notes issues found during QA that should be excluded from release notes
Milestone

Comments

@willow9886
Copy link
Contributor

willow9886 commented Nov 15, 2016

People are having to recreate their attributes when moving environments (e.g. dev to prod). Would be nice if we provided a feature to export / importing all attributes as a file via an ldif.

Backup schema, and import schema in order to make it easier to move from dev to qa to prod, etc.

@willow9886 willow9886 added this to the CE 3.1.0 milestone Nov 15, 2016
@willow9886 willow9886 added the enhancement libs update, re-factroring, etc. label Nov 15, 2016
@willow9886 willow9886 changed the title Export / Import Schema Import / Export Schema Nov 15, 2016
@shekhar16
Copy link
Collaborator

@willow9886 there few changes we made on attribute registration i.e #339 and they are in Yuriy's plate to verify it.
Lets wait to finish attribute registration,so that the things will be clear to import/export bunch of attributes from/to ldap.

@shekhar16
Copy link
Collaborator

shekhar16 commented Feb 28, 2017

image

shekhar16 pushed a commit to GluuFederation/oxCore that referenced this issue Feb 28, 2017
@shekhar16
Copy link
Collaborator

b104fbd

@yurem
Copy link
Contributor

yurem commented Feb 28, 2017

it's very powerful functionality. Is it check if it imports only attributes?

@willow9886
Copy link
Contributor Author

willow9886 commented Feb 28, 2017

Very cool! cc @mzico @aliaksander-samuseu

@jschristie : I'll make a note about adding this to docs.

@mzico
Copy link
Contributor

mzico commented Feb 28, 2017

@willow9886: very nice. We can QA if required.

Couple of questions:

  • I think we might need it when we upgrade from 2.4.x to 3.0.x, right?
  • If yes, do we have procedure available for such upgrade?
  • If no, then is it necessary when we will re-install a new server with same build ( say: old server is 3.0.0 and installed new server with 3.0.1 from setup.properties.last and other backup directory from old server )?

@shekhar16
Copy link
Collaborator

Presently it is supporting for all branches. And I m working for export LDIF functionality.

shekhar16 pushed a commit to GluuFederation/oxCore that referenced this issue Feb 28, 2017
shekhar16 pushed a commit that referenced this issue Feb 28, 2017
@shekhar16
Copy link
Collaborator

Now it will allow to import only attributes.

shekhar16 pushed a commit that referenced this issue Mar 2, 2017
yurem added a commit to GluuFederation/oxCore that referenced this issue Mar 6, 2017
yurem added a commit that referenced this issue Mar 6, 2017
@yurem
Copy link
Contributor

yurem commented Mar 6, 2017

I've review code and updated it. It's ready for QA now. It's allows to load attributes meta-data only.
I offer to open another issue because this part requires more changes to make it useful:

  • There is not export attributes functionality. User should be able to select attributes definitions needed to export.
  • There is no validation during import that attribute with specified name already exists.
  • Import not updates attribute DN. It should update atttributes DN to conform new org_inum

@yurem yurem added exclude from release notes issues found during QA that should be excluded from release notes and removed enhancement libs update, re-factroring, etc. labels Mar 6, 2017
shekhar16 pushed a commit to GluuFederation/oxCore that referenced this issue Mar 12, 2017
shekhar16 pushed a commit that referenced this issue Mar 14, 2017
@shekhar16
Copy link
Collaborator

Export attributes ldif is completed.

@yurem
Copy link
Contributor

yurem commented Mar 20, 2017

It looks almost ready to use. The one question which bother me is:

  • Import not updates attribute DN. It should update atttributes DN to conform new org_inum

It's useful for case when we do export on one machine but import tham on another one with.

@shekhar16
Copy link
Collaborator

1b22ebb

@nynymike nynymike closed this as completed Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exclude from release notes issues found during QA that should be excluded from release notes
Projects
None yet
Development

No branches or pull requests

5 participants