title: CAS AD LDAP 32 error
body: <p>I am seeing this when I try to login with CAS which is authenticating against AD over LDAP.    </p>
  
  <pre><code>SEVERE: Servlet.service() for servlet cas threw exception
  javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001E5, problem 2001 (NO_OBJECT), data 0, best match of:
      ''
  ]; remaining name '/'
      at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3092)
      at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3013)
      at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2820)
      at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1829)
      at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1752)
      at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
      at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
      at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:257)
      at org.springframework.ldap.core.LdapTemplate$3.executeSearch(LdapTemplate.java:231)
      at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:293)
      at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:237)
      at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:588)
      at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:546)
      at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:401)
      at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:421)
      at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:441)
  </code></pre>
  
  <p>Up to that point I was authenticated by the BindLdapAuthenticationHandler, resolved, it generated a query builder and then threw this.</p>
  
  <p>I think it is failing when it is trying to get attributes back. Why is the <code>remaining name '/'</code>?</p>