Renaming An Entry Using Ldif - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

LDIF Update Statements

Renaming an Entry Using LDIF

Use
changetype:modrdn
An entry's RDN is the left-most element in the distinguished name. Therefore, the
RDN for
cn=Barry Nixon,ou=People,dc=example,dc=com
is
cn=Barry Nixon
And the RDN for
ou=People,dc=example,dc=com
is
ou=People
Therefore, this rename operation allows you to change the left-most value in an
entry's distinguished name.
For example, the entry
cn=Sue Jacobs,ou=People,dc=example,dc=com
can be modified to be
cn=Susan Jacobs,ou=People,dc=example,dc=com
but it cannot be modified to be
cn=Sue Jacobs,ou=old employees,dc=example,dc=com
The following example can be used to rename Sue Jacobs to Susan Jacobs:
dn: cn=Sue Jacobs,ou=Marketing,dc=example,dc=com
changetype: modrdn
newrdn: cn=Susan Jacobs
deleteoldrdn: 0
Because
the new entry. The resulting entry would therefore have a common name (
attribute set to both Sue Jacobs and Susan Jacobs, in addition to all the other
attributes included in the original entry. However, if you used
dn: cn=Sue Jacobs,ou=Marketing,dc=example,dc=com
changetype: modrdn
newrdn: cn=Susan Jacobs
deleteoldrdn: 1
66
Red Hat Directory Server Administrator's Guide • May 2005
to change an entry's relative distinguished name (RDN).
is
, this example retains the existing RDN as a value in
deleteoldrdn
0
)
cn

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Directory server 7.1

Table of Contents