Red Hat DIRECTORY SERVER 7.1 Configuration page 241

Configuration, command, and file reference
Hide thumbs Also See for DIRECTORY SERVER 7.1:
Table of Contents

Advertisement

Option
Description
Virtual list search. Allows you to specify the number of entries before or after
-G
the search target and the index or value of the first entry returned. For
example, if you are sorting 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.
Characterset. Specifies the characterset to use for command-line input. The
-i
default is the characterset specified in the LANG environment variable. You
might want to use this option to perform the conversion from the specified
characterset to UTF8, thus overriding the environment variable setting.
Using this argument, you can input the bind DN, base DN, and the search
filter pattern in the specified . ldapsearch converts the input from these
arguments before it processes the search request. For example, -i no
indicates that the bind DN, base DN, and search filter are provided in
Norwegian.
This argument only affects the command-line input; that is, if you specify a file
containing a search filter (with the -f option) ldapsearch will not convert
the data in the file.
Get effective rights search. This option is used in the following format to
-J
retrieve access control information on a specific entry: -J control OID:boolean
criticality:dn:AuthId
control OID is the OID for the get effective rights control,
1.3.6.1.4.1.42.2.27.9.5.2.
boolean criticality specifies whether the search operation should return an
error if the server does not support this control (true) or if it should be
ignored and let the search return as normal (false).
AuthId is the DN of the user whose rights you want to check.
Conversion routines directory. If you want to specify a sort language that is
-k
not supported by default in this release of the Directory Server, such as one
obtained from a later release of the LDAP SDK, you need to supply the
directory in which you store the conversion routines. You can view the list of
supported languages in Table B.1 in the Red Hat Directory Server
Administrator's Guide.
When performing the search, the server looks in the current working
directory. However, if the conversion routines are not in the current working
directory, you need to specify this option when using ldapsearch. The
conversion routines directory is located by default in
/path/slapd-serverID/lib/nls.
Chapter 7
Command-Line Utilities
ldapsearch
241

Advertisement

Table of Contents
loading

Table of Contents