This program allows you to easily collate and count entries by selecting an attribute. Entries are searched and then grouped by attribute occurrence, which is then printed as result.
Extrect selected entries from LDIF files like grep
ldif-extract is a small 'grep' like tool to extract and convert data from LDIF files. It could be used standalone or also in a pipe together with other tools like ldapsearch.
...The values given from STDIN are parsed into a filterstring containing placeholders. The found DNs are printed to STDOUT for each search. Parameters allow fine tuning of all features including attribute printing.