title: ldapsearch operations error: DSID-0C0906E8
body: <p>I am trying test ldap binding with our institutional ldap server using <code>ldapsearch</code> command. </p>
  
  <p>Here is the configuration from a web application using Spring for ldap authentication.</p>
  
  <pre><code>&lt;beans:bean id="contextSource"
              class="org.springframework.security.ldap.DefaultSpringSecurityContextSource"&gt;
      &lt;beans:constructor-arg value="ldap://ldap.xxx.edu:389/DC=xxx,DC=edu" /&gt;
      &lt;beans:property name="userDn" value="ou=institution,ou=people" /&gt;
      &lt;beans:property name="password" value="password" /&gt;
  &lt;/beans:bean&gt;
  </code></pre>
  
  <p>The command I ran is </p>
  
  <pre><code>ldapsearch -h ldap.xxx.edu -p 389 -x -b "dc=xxx,dc=edu"
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code># extended LDIF
  #
  # LDAPv3
  # base &lt;dc=xxx,dc=edu&gt; with scope subtree
  # filter: (objectclass=*)
  # requesting: ALL
  #
  
  # search result
  search: 2
  result: 1 Operations error
  text: 000004DC: LdapErr: DSID-0C0906E8, comment: In order to perform this ope
   ration a successful bind must be completed on the connection., data 0, v1db1
  
  # numResponses: 1
  </code></pre>
  
  <p>The error message is kind of vague. It does not really say what exactly it is caused by. Anything wrong with my ldapsearch command?</p>