
Understanding LDAP Services for Novell eDirectory
339
n
ov
do
cx (e
n)
11
Ju
ly 20
08
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, ldapmodrdn [options] >
out.txt
.
NOTE:
Refer to
“Common Options for All LDAP Tools” on page 334
for more details on common
options.
Example
Assume that the file /tmp/entrymods exists and has the following contents:
cn=Modify Me, o=University of Michigan, c=US
cn=The New Me
ldapsearch
The ldapsearch utility searches the directory for specified attributes and object classes. It has the
following syntax:
ldapsearch [-n] [-u] [-v] [-t] [-A] [-T] [-C] [-V] [-M] [-P] [-L] [-d debuglevel]
[-e key filename] [-f file] [-D binddn] [[-W]| [-w bindpasswd]] [-h ldaphost] [-p
ldapport] [-b searchbase] [-s scope] [-a deref] [-l time limit] [-z size limit] [-
Z[Z]] filter [attrs....]
NOTE:
On a NetWare server, the utility is called lsearch.
The ldapsearch tool opens a connection to an LDAP server, binds, and performs a search using the
filter. The filter should conform to the string representation for LDAP filters as defined in
RFC 2254
(http://www.ietf.org/rfc/rfc2254.txt)
.
If ldapsearch finds one or more entries, the attributes specified by attrs are retrieved and the entries
and values are printed to standard output. If no attributes are listed, all attributes are returned.
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, ldapsearch [options] filter [attribute list] >
out.txt
.
Option
Description
-c
Continuous operation mode. Errors are reported, but ldapmodify will
continue with modifications. The default is to exit after reporting an error.
-f
file
Reads the entry modification information from the file instead of from
standard input or the command line. Make sure that there are no blank
lines between the old RDN and new RDN, or the -f option will fail.
-r
Removes old RDN values from the entry. The default is to keep old
values.
-s
newsuperior
Specifies the distinguished name of the container to which the entry is
moving.
Содержание EDIRECTORY 8.8 SP3
Страница 4: ...novdocx en 11 July 2008...
Страница 72: ...72 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 120: ...120 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 132: ...132 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 190: ...190 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 238: ...238 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 262: ...262 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 288: ...288 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 320: ...320 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 348: ...348 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 388: ...388 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 492: ...492 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 586: ...586 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 599: ...The eDirectory Management Toolbox 599 novdocx en 11 July 2008 Click Help for details...
Страница 600: ...600 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...
Страница 614: ...614 Novell eDirectory 8 8 Administration Guide novdocx en 11 July 2008...