### Connecting to Exchange (Leopard) and Active Directory via LDAP

The only real problem is figuring out the correct naming context1, which can be done by issuing:

\$ ldapsearch -h your.exchange.server -x -b '' -s base '(objectclass=*)' 'namingContexts'


…and pick out the correct namingContext entry from the output. Bear in mind that on a multi-branch tree (like the ones in multinationals) you might not want to pick the shortest.

### Listing Recently Modified Contacts

This AppleScript (taken from here) is very useful when keeping track of modifications done by syncing your address book with other sources:

defaults write com.apple.AddressBook ABShowDebugMenu -bool true