This small perl program allows you to easily export LDAP entries from an LDAP server (MS ActiveDirectory for example) to csv format. It can export various csv formats and can deal with mutlivalued attributes.
LDIFtoCSV
Converts LDIF(LDAP Data Interchange Format)
text files to CSV(comma-separated values) text files.
The file can then be manipulated in a text editor or
spreadsheet program easier.