title: LDAP Error "User Name Not Found"
body: <p>When users try to log onto my web app, an LDAP error, <code>code 49 data 525</code>, occurs, which means <code>username not found</code>. <a href="http://ldapwiki.willeke.com/wiki/Common%20Active%20Directory%20Bind%20Errors" rel="nofollow">LDAP Errors</a></p>
  
  <p>I don't know if my resource account, which authenticates to my LDAP server, has a bad username OR whether it's the users trying to log onto my system.</p>
  
  <p>How can I figure this out?</p>
  
  <pre><code>&gt;     org.springframework.ldap.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903AA, comment:
  &gt; AcceptSecurityContext error, data 525, v1772^@]; nested exception is
  &gt; javax.naming.AuthenticationException: [LDAP: error code 49 - 800\
  &gt;     90308: LdapErr: DSID-0C0903AA, comment: AcceptSecurityContext error, data 525, v1772^@]
  &gt;             at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:182)
  &gt;             at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:266)
  &gt;             at org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:106)
  &gt;             at org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:125)
  &gt;             at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:287)
  &gt;             at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:361)
  &gt;             at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:215)
  </code></pre>