2013-03-21 77 views
3

当用户尝试登录我的Web应用程序时,发生LDAP错误code 49 data 525,这意味着username not foundLDAP ErrorsLDAP错误“未找到用户名”

我不知道对我的LDAP服务器进行身份验证的资源帐户是否有错误的用户名,或者是否是尝试登录到我的系统的用户。

我该如何解决这个问题?

>  org.springframework.ldap.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903AA, comment: 
> AcceptSecurityContext error, data 525, v1772^@]; nested exception is 
> javax.naming.AuthenticationException: [LDAP: error code 49 - 800\ 
>  90308: LdapErr: DSID-0C0903AA, comment: AcceptSecurityContext error, data 525, v1772^@] 
>    at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:182) 
>    at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:266) 
>    at org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:106) 
>    at org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:125) 
>    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:287) 
>    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:361) 
>    at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:215) 

回答

5

对于我的问题,我错误地输入了特定LDAP用户的DN。我没有逃过CN=Smith\, John的逗号。

添加反斜杠后,我得到另一个LDAP错误error code 49 data 52e,这意味着用户名为&的密码错误。

尽管如此,这是一个逃避的问题。