HP-UX Directory Server 8.1 configuration, command, and file reference
Table 6-10 Additional ldapsearch options (continued)
DescriptionOption
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, then by given name:
-S sn -S givenname
The default is not to sort the returned entries.
-S
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.
-t
Specifies that the user-friendly form of the distinguished name be used in the output.
-u
Specifies that the utility is to run in verbose mode.
-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 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
HP-UX Directory Server administrator guide.
-Y
Specifies the getEffectiveRightscontrol specific attribute list, where attributes are separated
by spaces. For example:
"nsroledn userPassword"
-X
6.5 ldapmodify
The ldapmodify command makes changes to directory entries through LDAP.
• “ldapmodify syntax” (page 201)
• “Commonly-used ldapmodify options” (page 201)
• “ldapmodify SSL options” (page 202)
• “ldapmodify SASL options” (page 203)
• “Additional ldapmodify options” (page 204)
6.5.1 ldapmodify syntax
# ldapmodify optional_options
ldapmodify [-D binddn ] [ -w passwd ] [ -acmnrvFR ] [ -d debug_level ] [ -h host ] [ -p
port ] [ -M auth_mechanism ] [ -Z/ZZ/ZZZ ] [ -V version ] [ -f file ] [ -l
number_of_ldap_connections ] [ entryfile ]
6.5.2 Commonly-used ldapmodify options
Table 6-11 Commonly-used ldapmodify options
DescriptionOption
Adds LDIF entries to the directory without requiring the changetype:add LDIF update statement.
This provides a simplified method of adding entries to the directory. This option also allows directly
adding a file created by the ldapmodify command.
-a
Specifies the suffix under which the new entries will be added.
-B
6.5 ldapmodify 201