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

Moddn overrides existing entry

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0.AM26
    • Fix Version/s: 2.0.0.AM27
    • Component/s: ldap
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: