This python script connects to an Active Directory, in order to retrieve users that have a mailbox on an Exchange server. Then il will connect to the Exchange server using EWS a retrieve contacts, user by user, and store them in a DB.
This has been made as a prerequisite for generating an custom address book.