
Chapter 2. Creating Directory Entries
34
2.4.4. Deleting an Entry Using LDIF
changetype: delete
is the change type which deletes an entire entry from the directory.
NOTE
You can only delete leaf entries. Therefore, when you delete an entry, make sure that
no other entries exist under that entry in the directory tree. That is, you cannot delete an
organizational unit entry unless you have first deleted all the entries that belong to the
organizational unit.
For example, of the following three entries, only the last two entries can be deleted:
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
The entry that identifies the
People
subtree can be deleted only if no other entries exist below it.
The following LDIF update statements can be used to delete person entries:
dn: cn=Pete Minsky,ou=People,dc=example,dc=com
changetype: delete
dn: cn=Sue Jacobs,ou=People,dc=example,dc=com
changetype: delete
WARNING
Do not delete the suffix
o=NetscapeRoot
. The Administration Server uses this suffix to
store information about installed Directory Servers. Deleting this suffix could force you to
reinstall the Directory Server.
2.4.5. Modifying an Entry in an Internationalized Directory
If the attribute values in the directory are associated with languages other than English, the attribute
values are associated with language tags. When using the
ldapmodify
command-line utility to
modify an attribute that has an associated language tag, you must match the value and language tag
exactly or the modify operation will fail.
For example, to modify an attribute value that has a language tag of
lang-fr
, include
lang-fr
in the
modify operation, as follows:
dn: bjensen,dc=example,dc=com
changetype: modify
replace: homePostalAddress;lang-fr
homePostalAddress;lang-fr: 34 rue de Seine
2.5. Maintaining Referential Integrity
Referential integrity
is a database mechanism that ensures relationships between related entries are
maintained. In the Directory Server, the referential integrity can be used to ensure that an update to
one entry in the directory is correctly reflected in any other entries that may refer to the updated entry.
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...