Deleting Entries Using ldapdelete
25
Parameter Name
Description
-f
Optional parameter that specifies the file
containing the LDIF update statements used to
define the modifications. If you do not supply
this parameter, the update statements are read
from
stdin
. For information on supplying LDIF
update statements from the command-line,
refer to
Section 2.2.1, “Providing Input from the
Command-Line”
.
Table 2.3. ldapmodify Parameters Used for Modifying Entries
For full information on
ldapmodify
parameters, see the
Directory Server Configuration, Command,
and File Reference
.
2.2.5. Deleting Entries Using ldapdelete
The
ldapdelete
command-line utility opens a connection to the specified server using the provided
distinguished name and password and deletes the specified entry or entries.
NOTE
You can only delete entries at the end of a branch. You cannot delete entries that are
branch points in the directory tree.
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 there are not any entries below
it. To delete
ou=People,dc=example,dc=com
, you must first delete Paula Simon and Jerry
O'Connor's entries and all other entries in that subtree.
Like
ldapmodify
, running
ldapdelete
requires the DN and password to bind to the Directory
Server, the port and host of the Directory Server, and the DNs of the entries to delete. For example:
ldapdelete -D "cn=Directory Manager" -w King-Pin -h cyclops -p 845 "cn=Robert
Jenkins,ou=People,dc=example,dc=com" "cn=Lisa
Jangles,ou=People,dc=example,dc=com"
This
ldapdelete
example has the following values:
• The entries tp delete have the DNs
cn=Robert Jenkins,ou=People,dc=example,dc=com
and
cn=Lisa Jangles, ou=People,dc=example,dc=com
.
• The bind DN is the Directory Manager, which has permission to delete every entry in the database,
and a password of
King-Pin
.
• The hostname is
cyclops
.
• The server uses port number
845
.
Содержание 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 ...