With Apache Directory Studio, I want to clone a LDAP server for testing purpose. The generate LDIF file can't be imported, since the order of structural entrys is wrong. As a result, I got ERR_251_PARENT_NOT_FOUND
errors.
Example situation:
dn: ou=test2,ou=test1,o=ml3
objectClass: organizationalUnit
objectClass: top
ou: test2
dn: ou=test1,o=ml3
objectClass: organizationalUnit
objectClass: top
ou: test1
This would fail because ou=test2
is a child of ou=test1
. So ou=test1
has to be generated first. To confirm this, I changed the order of a few entrys and they were successfully imported. Problem: I would need to do this on all entrys by hand.
How can I get an LDIF export in the correct hierarchical order for exporting?