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

add -r option for reverse hierarchical sort on changetype: delete ent… #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

meyerd
Copy link

@meyerd meyerd commented May 4, 2019

…ries

When exporting the current server state as an ldif and having the new state as ldif, ldifdiff prints out a possibly non-hierarchical sorted ldif file which is not usable by ldapmodify. ldifsort sorts all the dns with the -h option correctly, but in the case of delete entries the modification ldif has to be sorted inversely for correctly reflecting the changes.

meyerd added 3 commits May 4, 2019 16:35
Transitivity is not preserved if only filtering on delete. Therefore
first order on add, delete and modify and then filter on delete for
reversal of order.
@meyerd
Copy link
Author

meyerd commented Jun 22, 2019

I added some changes to fix the reverse ordering option: It failed, when add, delete and modify operations were present in the file at the same time. Now all operations are first sorted by add, delete, modify, then within those add is supported along the tree towards the children (same for modify), and delete is sorted from children to root if -r is speficied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant