LDAP-UX Client Services B.05.00 Administrator's Guide
7.4.4 ldapmodify
You use the ldapmodify command-line utility to add or modify entries in an existing LDAP
directory. ldapmodify opens a connection to the specified server using the distinguished name
and password you supply, and adds or modifies the entries based on the LDIF update statements
contained in a specified file. Because ldapmodify uses LDIF update statements, ldapmodify
can do everything ldapdelete can do. For detailed information, see the HP-UX Directory Server
administrator guide available at the following website:
http://www.hp.com/go/hpux-security-docs
Click HP-UX Directory Server.
7.4.4.1 Syntax
ldapmodify [optional_options]
where
optional_options
Specifies a series of command-line options.
7.4.4.2 ldapmodify options
The section lists the most commonly used.ldapmodify options. For more information, see the
HP-UX Directory Server configuration, command, and file reference.
-a
Allows you to add LDIF entries to the directory without requiring the changetype:add
LDIF update statement. This provides a simplified method of adding entries to the directory.
-B Specifies the suffix under which the new entries will be added.
-D Specifies the distinguished name (DN) with which to authenticate to the server. If specified,
this value must be a DN recognized by the Directory Server, and it must also have the
authority to search for the entries.
-f This option specifies the file containing the LDIF update statements used to define the
directory modification. If you do not supply this option, the update statements are read
from stdin.
-h
Specifies the host name or IP address of the Directory Server. If not specified, ldapmodify
uses the local host.
-p Specifies the TCP port number that the Directory Server uses. The default is 389.
-q Causes each add to be performed silently as opposed to being echoed to the screen
individually.
-w
Specifies the password associated with the distinguished name that is specified in the -D
option.
296 Command and tool reference