On Sat, Jan 23, 2016 at 3:17 AM, Emmanuel Lécharny <elecha...@gmail.com>
wrote:

> Le 22/01/16 21:18, Stefan Seelmann a écrit :
> > On 01/22/2016 11:11 AM, Jan Sindberg wrote:
> >> I am using ApacheDS. I export via Apache Studio and try to import in
> another ApacheDS. It gives a lot of errors, but it is doable if it is set
> to continue on error and I import several times.
> >> Is there a better way to move a setup from one to another?
> >> From what I found on google it sounds like the LDIF should be sorted
> before import, but I did not find a tool for that. Is there a tool in
> Fortress to read out all A/RBAC information to an xml-file like the ones
> used for initial setup?
> >>
> > There is an existing issue for that:
> > https://issues.apache.org/jira/browse/DIRSTUDIO-801
> >
> > However the discussion turned from "hierarchical sort" (DNs with lower
> > RDN count first aka parents first) to "proper RDN sorting". I think the
> > former is easier to implement, but for large exports that don't fit into
> > memory require double disk space and multiple passes.
> >
> > Kind Regards,
> > Stefan
> >
> It's probably better to sort using the RDN length. Reading the LDIF,
> keeping a track of the start and end position of each entry in the LDIF
> file, is the way to go. It does not require a lot of memory.
>
yep, the current LdifReader has support for this

>
> Otherwise, we have worked on a tool that process LDIFs and load them
> after having sorted them with Kiran (BulkLoader) that is able to process
> very big files). We have to see if it can be reused easily.
>
yeah, this sorter works well indeed


Kiran Ayyagari
http://keydap.com

Reply via email to