Announcement Announcement Module
Collapse
No announcement yet.
BadLdapGrammarException: RDN could not be parsed fully Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • BadLdapGrammarException: RDN could not be parsed fully

    Hi all,
    i am having following problem.
    I doing simple search on InetOrgPersonObjects, via criteria uid=something

    but i got following error:

    org.acegisecurity.ldap.LdapDataAccessException: Failed to fetch user for username: dmadunic; nested exception is org.springframework.ldap.UncategorizedLdapExceptio n: Operation failed; nested exception is javax.naming.NamingException: problem generating object using object factory [Root exception is org.springframework.ldap.BadLdapGrammarException: RDN could not be parsed fully, remaining 'c']; remaining name 'ou=croz,ou=Users'
    org.springframework.ldap.UncategorizedLdapExceptio n: Operation failed; nested exception is javax.naming.NamingException: problem generating object using object factory [Root exception is org.springframework.ldap.BadLdapGrammarException: RDN could not be parsed fully, remaining 'c']; remaining name 'ou=croz,ou=Users'
    javax.naming.NamingException: problem generating object using object factory. Root exception is org.springframework.ldap.BadLdapGrammarException: RDN could not be parsed fully, remaining 'c'
    at org.springframework.ldap.support.LdapEncoder.nameD ecode(LdapEncoder.java:226)
    at org.springframework.ldap.support.LdapRdnComponent. <init>(LdapRdnComponent.java:69)
    at org.springframework.ldap.support.DnParserImpl.attr ibuteTypeAndValue(DnParserImpl.java:112)
    at org.springframework.ldap.support.DnParserImpl.rdn( DnParserImpl.java:62)
    at org.springframework.ldap.support.DnParserImpl.dn(D nParserImpl.java:27)
    at org.springframework.ldap.support.DistinguishedName .parse(DistinguishedName.java:130)
    at org.springframework.ldap.support.DistinguishedName .<init>(DistinguishedName.java:89)
    at org.springframework.ldap.support.DirContextAdapter .<init>(DirContextAdapter.java:131)
    at org.springframework.ldap.support.DefaultDirObjectF actory.getObjectInstance(DefaultDirObjectFactory.j ava:56)
    at javax.naming.spi.DirectoryManager.createObjectFrom Factories(DirectoryManager.java:228)
    at javax.naming.spi.DirectoryManager.getObjectInstanc e(DirectoryManager.java:207)
    at com.sun.jndi.ldap.LdapSearchEnumeration.createItem (LdapSearchEnumeration.java:118)
    at com.sun.jndi.ldap.LdapNamingEnumeration.nextAux(Ld apNamingEnumeration.java:272)
    at com.sun.jndi.ldap.LdapNamingEnumeration.nextImpl(L dapNamingEnumeration.java:252)
    at com.sun.jndi.ldap.LdapNamingEnumeration.next(LdapN amingEnumeration.java:200)
    at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:271)
    at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:231)
    at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:561)
    at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:475)
    at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:423)
    at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:444)
    ...

    It seems that the problem is that Ldap entires have dn with national characters, because if I perform same search for entry with DN without national characters all goes well!

    I can not change Ldap entries, and need to find a way to perform search?

    thx a lot for any advice.

  • #2
    This sounds like a bug. I'd appreciate if you would post a report on the bug tracker here.

    Comment


    • #3
      Done

      Ok done
      http://opensource.atlassian.com/proj...browse/LDAP-30

      I have done some more test and can confirm that this Exception only occures when searching fro entries which have national characters in DN, all other searches goes well.
      Platform is Win XP and OpneLDAP for Windows.

      Domagoj

      Comment

      Working...
      X