Test connectivity between an Active Directory server and Messaging Gateway using ldapsearch