Uploaded image for project: 'Directory ApacheDS'
  1. Directory ApacheDS
  2. DIRSERVER-628

Creation of entry with multivalued RDN leads to wrong attribute value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-RC3
    • 1.0-RC4, 1.5.0
    • None
    • None
    • ApacheDS 1.0 RC 3
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
      Microsoft Windows XP version 5.1 Service Pack 1

    Description

      Adding the following entry to ApacheDS (server.xml configuration unchanged):

      dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
      objectclass: top
      objectclass: person
      sn: Bush
      cn: Kate Bush

      i.e.
      $ ldapmodify -h localhost -p 10389 -D "uid=admin,ou=system" -w ****** -a -f KateBush.ldif

      leads to an entry with wrong value for cn:

      $ ldapsearch -h localhost -p 10389 -D "uid=admin,ou=system" -w secret -b "dc=example,dc=com" -s sub "(sn=Bush)"
      version: 1
      dn: cn=Kate Bush+sn=Bush,dc=example,dc=com
      objectclass: person
      objectclass: top
      sn: Bush
      cn: Kate Bush+sn=Bush

      Note the value of cn is "Kate Bush+sn=Bush", not "Kate Bush" as expected.

      The same behavior with corresponding JNDI code, I will attach a simple JUnit test for this.

      Attachments

        1. MultiValuedRdnTest.java
          2 kB
          Stefan Zoerner
        2. DIRSERVER-628.patch
          7 kB
          Alex Karasulu

        Issue Links

          Activity

            People

              akarasulu Alex Karasulu
              szoerner Stefan Zoerner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: