This discussion is archived
0 Replies Latest reply: Jul 31, 2012 5:31 AM by 953005 RSS

Follow referral failing when there is diacritics character in DN

953005 Newbie
Currently Being Moderated
I have two Active Directory servers. One is configured as parent domain and the other one is configured as child domain.

I am using JNDI to connect parent domain to do every operations in parent domain and child domain. Everything is working properly for normal users. But every call which has to follow referral is failing when DN contains diacritics character. For example read DN is failing for : “cn=Jose Škára,ou=People,dc=example,dc=com”. If I connect to the child domain, I can read this DN. I think the issue is because JNDI is doing some encoding and converting the diacritics characters before making the referral call. Is this because I missed some steps during context initialization?

I am getting the following exception on making the call.
aused by: javax.naming.NameNotFoundException: [LDAP: error code 32 - The search base entry 'cn=Jose `k?ra,ou=People,dc=example,dc=com' does not exist]; remaining name ''
     at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3066)
     at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
     at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794)
     at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1309)
     at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213)
     at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121)
     at com.sun.jndi.ldap.LdapReferralContext.getAttributes(LdapReferralContext.java:481)
     at com.sun.jndi.ldap.LdapCtx.c_getAttributes(LdapCtx.java:1342)
     at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:213)
     at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:121)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points