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

Moddn overrides existing entry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0.AM26
    • 2.0.0.AM27
    • ldap
    • None

    Description

      Moddn operation where the new DN matches an already existing entry overrides that entry

      dn: uid=bar,dc=example,dc=com
      changetype: add
      objectClass: inetOrgPerson
      objectClass: organizationalPerson
      objectClass: person
      objectClass: top
      uid: bar
      cn: bar
      sn: bar
      
      dn: uid=foo,dc=example,dc=com
      changetype: add
      objectClass: inetOrgPerson
      objectClass: organizationalPerson
      objectClass: person
      objectClass: top
      uid: foo
      cn: foo
      sn: foo
      
      dn: uid=bar,dc=example,dc=com
      changetype: moddn
      newrdn: uid=foo
      deleteoldrdn: 1
      newsuperior: dc=example,dc=com
      
      

      Result is that uid=bar is gone and uid=foo has attributes of bar.

      dn: uid=foo,dc=example,dc=com
      objectClass: inetOrgPerson
      objectClass: organizationalPerson
      objectClass: person
      objectClass: top
      cn: bar
      sn: bar
      uid: foo
      

      Expected: Error 68 (entryAlreadyExists)

      Attachments

        Activity

          People

            Unassigned Unassigned
            seelmann Stefan Seelmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: