title: LDAP authentication failed:data 52e
body: <p>I am trying to authenticate through LDAP account:</p>
  
  <pre><code>@Configuration
      protected static class AnnotationConfiguration extends GlobalAuthenticationConfigurerAdapter{
  
          @Override
          public void init(AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception{
              authenticationManagerBuilder
                  .ldapAuthentication()
                  .userSearchFilter("(cn={0})")
                  .userSearchBase("ou=User Accounts,dc=ph,dc=sunlife")
                  //.groupSearchFilter("")
                  //.userDnPatterns("cn={0},ou=Functional Accounts")
                  //.rolePrefix("")
                  .contextSource()
                  .url("ldap://ldapvs.ph.sun/dc=ph,dc=sun")
                  .managerPassword("sun_01").managerDn("cn=JPH,ou=Non Internet user,ou=Staff,ou=User Accounts");
  
          }
  
      }
  </code></pre>
  
  <p>After entering the username and password to the login page, i am getting:</p>
  
  <pre><code>14:01:32 [http-bio-8085-exec-7] UsernamePasswordAuthenticationFilter - An internal error occurred while trying to authenticate the user.
  org.springframework.security.authentication.InternalAuthenticationServiceException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A8, comment: AcceptSecurityContext error, data 52e, v1db1
  </code></pre>
  
  <p>Though i know my password and username are valid.</p>