Results 1 to 2 of 2

Thread: / character in cn gives BadLdapGrammarException

  1. #1

    Default / 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. #2
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    This has been fixed; I think it was in version 1.1.1. You should upgrade to the latest version.
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •