title: Searching entries using ldapsearch
body: <p>I am new to learning ldap authentication. Now there are two commands that I can use to search ldap directory:</p>
  
  <p>First one:</p>
  
  <pre><code>ldapsearch -b "base directoty path" -D "cn=manager,dc=mydomain,dc=com" -W "ldap pwd"
  </code></pre>
  
  <p>Second one:</p>
  
  <pre><code>ldapsearch -x -b "dn of entry to be searched"
  </code></pre>
  
  <p>The first command requires my pwd, whereas the second doesn't. What is actually happening here?</p>