问题现象
最近在接入nacos ldap认证,但是公司的ldap basedn 和 userdn里都带有中文,
直接配置到application.properties里后发现老是报
org.springframework.ldap.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09044E, comment: AcceptSecurityContext error, data 52e, v2580^@]; nested exception is javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09044E, comment: AcceptSecurityContext error, data 52e, v2580^@]
at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:191