Example code for AD Lookup.