
Understanding LDAP Services for Novell eDirectory
325
no
vd
ocx (
E
NU)
01
F
ebr
ua
ry
200
6
In this case, the command ldapadd -f /tmp/entrymods will add a new entry for B Jensen, using the
values from the file
/tmp/newentry
.
Assume that the file
/tmp/newentry
exists and has the following contents:
dn: cn=Barbara Jensen, o=University of Michigan, c=US
changetype: delete
In this case, the command ldapmodify -f /tmp/entrymods will remove B Jensen’s entry.
ldapdelete
The ldapdelete utility deletes the specified entry. It opens a connection to an LDAP server, binds,
and then deletes. It has the following syntax:
ldapdelete [-n] [-v] [-c] [-r] [-l] [-C] [-M] [-d debuglevel] [-e key
filename] [-f file] [-D binddn] [[-W]| [-w passwd]] [-h ldaphost] [-p
ldapport] [-Z[Z]] [dn]...
NOTE:
On a NetWare server, the utility is called ldelete.
The dn parameter is a list of distinguished names of the entries to be deleted.
It interacts with the -f option in the following ways:
• If the -f option is missing from the command line and dn's are specified on the command line,
the utility deletes the specified entries.
• If both dn and the -f option are in the command line, the utility reads the file for the dn's to
delete and ignores any dn's in the command line.
• If both dn and the -f option are missing in the command line, the utility reads the dn from stdin.
TIP:
Output from the ldap utilities is sent to stdout. If the utility exits before you can view the
output, redirect the output to a file, for example, ldapdelete [options] >
out.txt
.
NOTE:
Refer to
“Common Options for All LDAP Tools” on page 322
for more details on common
options.
Example
The command ldapdelete "cn=Delete Me, o=University of Michigan, c=US" will attempt to delete
the entry named with the commonName Delete Me directly below the University of Michigan
Option
Description
-c
Continuous operation mode. Errors are reported, but ldapdelete will continue
with deletions. The default is to exit after reporting an error.
-f
file
Reads a series of lines from the file, performing one LDAP search for each
line. In this case, the filter given on the command line is treated as a pattern,
where the first occurrence of %s is replaced with a line from the file.
-r
Delete recursively.
Summary of Contents for EDIRECTORY 8.8 - GUIDE
Page 4: ...novdocx ENU 01 February 2006...
Page 16: ...16 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 68: ...68 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 90: ...90 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 116: ...116 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 128: ...128 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 184: ...184 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 249: ...250 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 307: ...308 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 333: ...334 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 371: ...372 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 439: ...440 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 519: ...520 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 529: ...530 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...
Page 555: ...556 Novell eDirectory 8 8 Administration Guide novdocx ENU 01 February 2006...