3.1.1.5.4 Modify DN

References

Constants

  • Access mask bits: RIGHT_DELETE, RIGHT_DS_DELETE_CHILD: see section 5.1.

  • GROUP_TYPE_BUILTIN_LOCAL_GROUP, GROUP_TYPE_ACCOUNT_GROUP, GROUP_TYPE_RESOURCE_GROUP, GROUP_TYPE_SECURITY_ENABLED: see section 2.2.12.

  • ADS_UF_WORKSTATION_TRUST_ACCOUNT, ADS_UF_INTERDOMAIN_TRUST_ACCOUNT: see [MS-DRSR] section 5.206, userAccountControl Bits.

  • GUID_INFRASTRUCTURE_CONTAINER_W, GUID_SYSTEMS_CONTAINER_W: see section 6.1.1.4.

The Modify DN originating update operation modifies the DN of the object.

The requester supplies the following data:

  • OldDN: DN of the object that is being modified by the Modify DN operation.

  • NewRDN: RDN that will form the leftmost component of the new name of the object.

  • NewParentDN: DN of the object that becomes the immediate superior of the object.

  • DeleteOldRDN: Boolean value that determines whether the old RDN value is to be retained. True means that the old RDN value MUST NOT be retained.

Let NewDN be the DN of the renamed object. The value NewDN is NewParentDN preceded by NewRDN.

Definitions

Let O be the object such that O!distinguishedName = OldDN.

Let P be O!parent.

If NewParentDN = NULL then NP is O!parent.

Otherwise, let NP be an object such that NP!distinguishedName = NewParentDN.

The originating update is a rename operation if O!name ≠ NewRDN.

The originating update is a move operation if PNP.