Folgaizer – Tech blog by G. Folga

Export/Import mail-enabled contacts with ldifde

January 27, 2009 · Leave a Comment

ADMT doesn’t support migration of contacts, so an alternative is to use ldifde to export and import contacts.

These are the main attributes needed to make the imported contact a mail-enabled one (At least for Exchange 2003)

cn,objectclass,samAccountName,legacyExchangeDN,

mail,mailNickname,proxyAddresses,displayName,targetAddress

And these are some general atributes that you may need to copy:

givenName,sn,name,physicalDeliveryOfficeName,description

Command line to export contacts:

ldifde -f file.ldf -s dc01 -d "ou=Contacts,dc=example,dc=com"
-p subtree -r "(&(objectCategory=person)(objectClass=Contact)(givenname=*))"
-l "cn,givenName,objectclass,samAccountName,mail,legacyExchangeDN,mailNickname,proxyAddresses,
physicalDeliveryOfficeName,displayName,name,description,sn,targetAddress"

Probably you are importing those contacts to a different domain/forest, so you need to replace the domain name (“dc=example,dc=com”) with the new one on the ldf file.

Command line to import contacts:

ldifde -i -f file.ldf

Categories: Exchange 2003 · Microsoft
Tagged: ,

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment