title: Spring LDAP - batch lookup full DNs
body: <p>I am using spring-ldap, and I have a situation where I have to look up a bunch of full DNs from an AD server. There is a good amount of latency on the way to the AD server, so if i just do N lookups sequentially:</p>
  
  <pre><code> LdapTemplate.findByDn(dn,MyClass);
  </code></pre>
  
  <p>it tends to be rather slow, despite not being a very expensive operation itself. If I had the GUIDs, for example, I could simply do batches or OR conditions:</p>
  
  <pre><code> (|(objectGUID=A)(objectGUID=B)(objectGUID=C))
  </code></pre>
  
  <p>but I can't find a way to do the same for full DNs. Does this even exist? I would like to avoid running N queries in parallel if I can ... </p>