
Using Special Characters
479
NOTE
For most Linux systems, OpenLDAP tools are already installed in the
/usr/bin/
directory. These OpenLDAP tools will not work for Directory Server operations.
This section contains information about the following topics:
•
Section B.2.1, “Using Special Characters”
•
Section B.2.2, “ldapsearch Command-Line Format”
•
Section B.2.3, “Commonly Used ldapsearch Options”
•
Section B.2.4, “ldapsearch Examples”
B.2.1. Using Special Characters
When using the
ldapsearch
command-line utility, it may be necessary to specify values that contain
characters that have special meaning to the command-line interpreter, such as space ( ), asterisk
(*), or backslash (\). Enclose the value which has the special character in quotation marks (""). For
example:
-D "cn=Barbara Jensen,ou=Product Development,dc=example,dc=com"
Depending on the command-line interpreter, use either single or double quotation marks. In general,
use single quotation marks (') to enclose values. Use double quotation marks (") to allow variable
interpolation if there are shell variables. Refer to the operating system documentation for more
information.
B.2.2. ldapsearch Command-Line Format
The
ldapsearch
command must use the following format:
ldapsearch [
optional_options
] [
optional_search_filter
] [
optional_list_of_attributes
]
•
optional_options
is a series of command-line options. These must be specified before the search
filter, if any are used.
•
optional_search_filter
is an LDAP search filter as described in
Section B.3, “LDAP Search Filters”
.
Do not specify a separate search filter if search filters are specified in a file using the
-f
option.
•
optional_list_of_attributes
is a list of attributes separated by a space. Specifying a list of attributes
reduces the number of attributes returned in the search results. This list of attributes must appear
after the search filter. For an example, see
Section B.2.4.6, “Displaying Subsets of Attributes”
. If a
list of attributes is not specified, the search returns values for all attributes permitted by the access
control set in the directory (with the exception of operational attributes).
NOTE
For operational attributes to be returned as a result of a search operation, they must be
explicitly specified in the search command. To retrieve regular attributes in addition to
Содержание 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 ...