LDIF Update Statements
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
new entry. The resulting entry would therefore have a common name (
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
the server would delete
within the entry.
A Note on Renaming Entries
You cannot rename an entry with the
moves to a completely different subtree. To move an entry to a completely different
branch you must create a new entry in the alternative subtree using the old entry's
attributes, and then delete the old entry.
66
Netscape Directory Server Administrator's Guide • December 2003
is
, this example retains the existing RDN as a value in the
deleteoldrdn
0
cn=Sue Jacobs
and only
cn=Susan Jacobs
change type such that the entry
modrdn
) attribute
cn
would remain
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers