Previous Topic: list-req Command—List Entries

Next Topic: mod-entry-req Command—Modify an Entry

mod-dn-req Command—Rename an Entry

The mod-dn-req command renames an entry. Renaming a non-leaf entry changes the distinguished name of all entries under it.

You can use mod-dn-req to change the case of a value, for example, from Democorp to DEMOCORP.

You can also optionally delete the old RDN.

The command has the following syntax:

mod-dn-req
	entry = DN 
	new-rdn = DN
	[ delete-old | dont-delete-old ]
	[new-superior = DN ] 
	[common-args]
	;

Example: Change the Name of an Organizational Unit

To change the name of the organizational unit R&D (under organization Democorp) to Research & Development:

mod-rdn-req
	entry = <countryName "AU">
		<organizationName "Democorp">
		<organizationalUnitName "R&D" >
	new-rdn = <organizationalUnitName "Research & Development">
	delete-old;

Example: Move the Entry and Any Subentries

The following command moves the R&D entry and all of its subordinates from AU,Democorp to AU, Democorp, Corporate.

mod-rdn-req 
	entry = <countryName "AU"> 
		<organizationName "Democorp"> 
		<organizationalUnitName "R&D" >
	new-rdn = <organizationalUnitName "Research & Development"> 
	delete-old 
	new-superior = <countryName "AU">
		<organizationName "Democorp">
		<organizationalUnitName Corporate>;


Copyright © 2009 CA. All rights reserved. Email CA about this topic