title: LDAPException size limit exceeded
body: <p>I am using unboundid ldap sdk for executing ldap query. I am facing a strange problem while running ldap search query. I am getting a Exception when i run query against a group which contains 50k entries. My Exception :</p>
  
  <pre><code>LDAPException(resultCode=4 (size limit exceeded), errorMessage='size limit exceeded')
  at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.nextElement(LDAPSearchResults.java:254)
  at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.next(LDAPSearchResults.java:279)
  </code></pre>
  
  <p>Now the strange thing is i already have set the maxResultSize to 100k in search constrains than why i am getting this error ?
  My code is </p>
  
  <pre><code>     ld = new LDAPConnection();
      ld.connect(ldapServer, 389);
  
      LDAPSearchConstraints ldsc = new LDAPSearchConstraints();
      ldsc.setMaxResults(100000);
      ld.setSearchConstraints(ldsc);
  </code></pre>
  
  <p>Anybody have any idea ?</p>