title: Spring Security returns 52e
body: <p>I am trying to do LDAP authentication by Spring Security.
  But it returns an error: </p>
  
  <blockquote>
    <p>error code 49 - 80090308: LdapErr: DSID-0C0903D9, comment: AcceptSecurityContext error, data 52e, v2580 ]</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre class="lang-java prettyprint-override"><code>auth.ldapAuthentication()
              .contextSource().url("ldap://server:389/dc=main,dc=domain,dc=ru")
              .managerDn("uid=user,ou=Domain Users,dc=mydomain,dc=ru").managerPassword("password")
              .and()
              .userSearchBase("ou=student")
              .userSearchFilter("(cn={0})");
  }
  </code></pre>
  
  <p>What can be the kind of mistake (excluding wrong credentials)?</p>