Table 6.10. additional ldapsearch options – Red Hat 8.1 User Manual

Page 186

Advertising
background image

Table 6.10. Additional ldapsearch Options

Option

Description

-1

Leaves out the opening version: 1 line from
the LDIF output.

-A

Specifies that the search retrieve the attributes
only, not the attribute values. This option is useful
to determine if an attribute is present for an entry
and the value is not important.

-a

Specifies how alias dereferencing is completed.
Values can be never, always, search, or
find. The default value is never.

-B

Print non-ASCII values using the old output format
(attrName=attrValue).

-c

Specifies the getEffectiveRights control
authzid. For example:

dn:uid=bjensen,dc=example,dc=com

A value of "" means the authorization ID for the
operation. A value of dn: means anonymous

-E

Reports the bind identity used for the search.

-e

Minimizes the base-64 encoding for the values of
returned entries.

-F

Specifies a different separator. This option allows
a separator other than a colon (:) to separate an
attribute name from the corresponding value. For
example:

-F +

-f

Specifies the file containing the search filters to
be used in the search. For example:

-f search_filters

option to supply a search filter directly to the
command line.
For more information about search filters, see
Appendix B, "Finding Directory Entries", in the
Directory Server Administrator's Guide.

-G

Conducts a virtual list view search. This option
can set the number of entries before or after the
search target and the index or value of the first
entry returned.
For example, a value operation that sorts by
surname, -G 20:30:johnson, returns the first
entry with a surname equal to or less than
johnson, in addition to 20 entries that come
before it and 30 entries that come after it. If there
are fewer matching entries in the directory than
the before or after number requested by the
search, all available entries before/after the
search target that match the search criteria are
returned.

An index operation which sorts by surname, -G
20:30:100:0
, returns from the 80th through
130th entries sorted by sn. Use 0 as the fourth
value for the count number unless you know how
many entries the VLV index has.

-H

Prints the help information.

-i

Specifies the characterset to use for command-
line input. The default is the characterset
specified in the LANG environment variable. Use
this option to perform the conversion from the
specified characterset to UTF8, thus overriding
the environment variable setting.
This argument can input the bind DN, base DN,
and the search filter pattern in the specified

186

Chapter 6. Command-Line Utilities

Advertising