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.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...