the server would delete
remain 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.
Also, for the same reasons that you cannot delete an entry if it is a branch point,
you cannot rename an entry if it has any children. Doing so would orphan the
children in the tree, which is not allowed by the LDAP protocol. For example, of
the following three entries:
ou=People,dc=example,dc=com
cn=Paula Simon,ou=People,dc=example,dc=com
cn=Jerry O'Connor,ou=People,dc=example,dc=com
you can rename only the last two entries. The entry that identifies the
subtree can be renamed only if no other entries exist below it.
Modifying an Entry Using LDIF
Use
changetype:modify
values to the entry. When you specify
a change operation to indicate how the entry is to be modified. Change operations
can be as follows:
•
attribute
add:
Adds the specified attribute or attribute value. If the attribute type does not
currently exist for the entry, then the attribute and its corresponding value are
created. If the attribute type already exists for the entry, then the specified
attribute value is added to the existing value. If the particular attribute value
already exists for the entry, then the operation fails, and the server returns an
error.
•
attribute
replace:
The specified values are used to entirely replace the attribute's value(s). If the
attribute does not already exist, it is created. If no replacement value is
specified for the attribute, the attribute is deleted.
•
attribute
delete:
, and only
cn=Sue Jacobs
modrdn
to add, replace, or remove attributes and/or attribute
changetype:modify
cn=Susan Jacobs
change type such that the entry
, you must also provide
Chapter 2
Creating Directory Entries
LDIF Update Statements
would
People
67
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