(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Integration : (Category) Microsoft Applications : (Answer) Microsoft Active Directory: How can run I test query with the OpenLDAP tools against Active Directory?
Assuming your Active Directory server is at and your domain is mydomain.local

Assuming you have created a user named "queryuser" with the "Active Directory Users and Computers" to connect to the directory with (Anonmous queries are not allowed by default)

ldapsearch -Hldap:// -b "" -s base -x -W -D queryuser@mydomain.local

To test SSL:

ldapsearch -Hldaps:// -b "" -s base -x -W -D queryuser@mydomain.local

You should see Microsoft Knowledge Base article 321051 ( http://support.microsoft.com/default.aspx?scid=kb;en-us;321051 ) for details about getting SSL configured for queries. 

Be advised if you do not use SSL, password queries will be sent unencrypted across the network.
ldapsearch -Hldap:// -b "" -s base -x -W -D queryuser@mydomain.local
[Append to This Answer]
Previous: (Answer) MS Outlook: How To Make Distribution Lists
Next: (Answer) New Item
This document is: http://www.openldap.org/faq/index.cgi?file=1336
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org