Home Learn the Basics View Content Add Content Create Pages Build Portlets Administer Page Groups Administer the Portal Try the Hands-On Exercises
Home
Home
Previous PageGo to page 1 of 8Go to page 2 of 8Go to page 3 of 8Go to page 4 of 8Go to page 5 of 8Go to page 6 of 8Current page 7 of 8Go to page 8 of 8Go to page 9 of 11Go to page 10 of 11Go to page 11 of 11Next Page
  Send us your feedback

ldapmoddn

Managing Content: ldapmoddn

In this section you will learn how to rename and move directory entries using the ldapmoddn operation. The ldapmoddn operation is used to modify a directories DN or RDN value.

Prerequisites

OID must be installed

OID must be running

The initial.ldif file should be loaded

Changing the RDN value of an entry

ldapmoddn -p 4032 -h localhost -D cn=orcladmin -w welcome1 -b "cn=dcp1, dc=Americas, dc=IMC, dc=com" -R "cn=thanh mai"

This example modifies the RDN component of the DN from "cn=dcp1" to cn=thanh mai".

Changing the DN value of an entry

ldapmoddn -p 4032 -h localhost -D cn=orcladmin -w welcome1 -b "cn=Linda Ball, ou=Treasury, ou=Fin-Accounting, ou=Europe, o=IMC, c=US" -R "cn=Linda Ball" -N "dc=imc, dc=com"

This example modifies the DN of a leaf level entry. The directory entry of "cn=Linda Ball" is moved under a new parent directory of "dc=imc,dc=com". After this modification is made the DN for "cn=Linda Ball" is change to "cn=Linda Ball,dc=imc,dc=com" from "cn=Linda Ball,ou=Treasury, ou=Fin-Accounting, ou=Europe, o=IMC, c=US".

Launch Viewlet Watch a viewlet on how to do this

Oracle Logo Next Page