Server User Manual

ldapsearch
255
Option Description
-O 2
-R Specifies that referrals are not to be followed
automatically. By default, referrals are followed
automatically.
-S Specifies the attribute to use as the sort criteria.
For example:
-S sn
Use multiple -S arguments to further define the
sort order. In the following example, the search
results will be sorted first by surname and then
by given name:
-S sn -S givenname
The default is not to sort the returned entries.
-T Specifies that no line breaks should be used
within individual values in the search results.
-t Specifies that the results be written to a set
of temporary files. With this option, each
attribute value is placed in a separate file within
the system temporary directory. No base-64
encoding is performed on the values, regardless
of the content.
-U Creates file URLs for the files produced by the -
t option.
-u Specifies that the user-friendly form of the
distinguished name be used in the output.
-V Specifies the LDAP version number to be used
on the search. For example:
-V 2
LDAPv3 is the default. An LDAPv3 search
cannot be performed against a Directory Server
that only supports LDAPv2.
-v Specifies that the utility is to run in verbose
mode.
-w - Prompts for the password for the bind DN.
-Y Specifies the proxy DN to use for the
search. This argument is provided for testing
purposes. For more information about proxied
authorization, see the "Managing Access
Control" chapter in the Directory Server
Administrator's Guide.