Create LDIF files for importing into AD (or other LDAP server)

I needed to create an LDIF file to import into a LINUX LDAP server that is part of the mail system. Two things are interesting here:

1. Cleaning up proxyAddress to only include secondary smtp addresses (email alias)

2. Finding the email-address for the administrative assistant defined in Exchange. (owner field needed for delegation)

Anonymous