
LDIF Update Statements
66
Red Hat Directory Server Administrator’s Guide • May 2005
Renaming an Entry Using LDIF
Use
changetype:modrdn
to change an entry’s relative distinguished name (RDN).
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
deleteoldrdn
is
0
, this example retains the existing RDN as a value in
the new entry. The resulting entry would therefore have a common name (
cn
)
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
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...