Making vCards from an LDAP directory

We've got an LDAP directory at the office with names, phone numbers, and email addresses. It's handy to get that all into my address book, which can import vCards. So here's a Python script that does just that: ldap2vcard.