2013-03-21 60 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,這意味着用戶名爲&的密碼錯誤。

儘管如此,這是一個逃避的問題。