Announcement Announcement Module
Collapse
No announcement yet.
/ character in cn gives BadLdapGrammarException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • / character in cn gives BadLdapGrammarException

    Hello!

    I'm running spring ldap 1.1.

    I have entries in my e-directory that has cn=foo/1 and cn=foo/2. It works in e-directory.
    But when I do a search in spring-ldap that returns such an entry I get:

    Caused by: org.springframework.ldap.BadLdapGrammarException: Not a proper name (such as key=value): "cn=foo/1 at org.springframework.ldap.support.LdapRdn.parseLdap (LdapRdn.java:119)
    at org.springframework.ldap.support.LdapRdn.<init>(Ld apRdn.java:64)
    at org.springframework.ldap.support.DistinguishedName .parse(DistinguishedName.java:132)
    at org.springframework.ldap.support.DistinguishedName .<init>(DistinguishedName.java:88)
    at org.springframework.ldap.support.DefaultDirObjectF actory.stripBasePath(DefaultDirObjectFactory.java: 90)
    at org.springframework.ldap.support.DefaultDirObjectF actory.getObjectInstance(DefaultDirObjectFactory.j ava:54)
    at javax.naming.spi.DirectoryManager.createObjectFrom Factories(DirectoryManager.java:218)
    at javax.naming.spi.DirectoryManager.getObjectInstanc e(DirectoryManager.java:197)
    at com.sun.jndi.ldap.LdapSearchEnumeration.createItem (LdapSearchEnumeration.java:105)

    What to do?

  • #2
    This has been fixed; I think it was in version 1.1.1. You should upgrade to the latest version.

    Comment

    Working...
    X