title: Using ldapsearch with a server over ssl but no password
body: <p>Our organization requires SSL for access to our ldap server.  When I set up our LDAP server in Mac OS X's Contacts application, I am able to search just fine for people in our organization.  However, using the command line app ldapsearch doesn't seem to work.</p>
  
  <p>The problem is that our organization, while using SSL, does not require a username or a password.  I can't seem to get ldapsearch to not require a password.</p>
  
  <p>Here's the command I'm using:</p>
  
  <pre><code>ldapsearch -H ldaps://ldap.example.com -b "" -s base "objectclass=*" 
  SASL/DIGEST-MD5 authentication started
  Please enter your password: 
  </code></pre>
  
  <p>Here is the contents of my /etc/openldap/ldap.conf</p>
  
  <pre><code>HOST ldap.example.com
  PORT 636
  TLS_REQCERT never
  </code></pre>
  
  <p>Here are the settings that work just fine in Mac OS X's Contacts application, and don't require a username or password:</p>
  
  <p><img src="https://i.stack.imgur.com/8YwsB.png" alt="ldap example"></p>
  
  <p>What's the correct ldapsearch concoction to use for this server?</p>