Previous Topic: Prevent the Creation and Automatic Updating of Operational Attributes

Next Topic: Convert Data from CSV Format to LDIF

Sort an LDIF File

Sorting ensures the parent entries are defined before child entries, and that all entries are logically correct. This can help prevent errors when you load the file.

To sort an LDIF file, use the following command:

ldifsort -b bad-file infile [outfile]
-b bad-file

Writes duplicate or bad input records to the specified file.

infile

Specifies the file to be sorted.

outfile

Specifies the file to which output is to be written. If you do not use this option, the output is written to the screen or STDOUT.

More information:

ldifsort Tool—Sort LDIF Records