LDAP-UX Client Services B.04.10 with Microsoft Windows Active Directory Server Administrator's Guide

LDAP Directory Tools
This section briefly describes the ldappasswd, ldapsearch, ldapmodify and ldapdelete.
For detailed information about ldapsearch, ldapmodify, and ldapdelete, refer to the
Microsoft Windows Active Directory Server Administrator's Guide available at http://docs.hp.com/
en/internet.html
ldappasswd
This section describes the ldappasswd command and its parameters. The ldappasswd
command, installed in /opt/ldapux/bin, is needed on clients that use an LDAP directory
replica because the replica cannot be modified by the passwd(1) command, or any other
command.
Syntax
ldappasswd [options]
where options can be any of the following:
-b basedn specifies basedn as the base distinguished name of where to start searching.
-h host specifies host as the LDAP server name or IP address.
-c
generates an encrypted password on the client. Use this parameter for directories
that do not automatically encrypt passwords. The default is to send the new
password in plain text to the directory. Netscape/Red Hat Directory Server for
HP-UX supports automatic encryption of passwords.
-v
prints the software version and exits.
-p port specifies port as the LDAP server TCP port number.
-D binddn specifies binddn as the bind distinguished name.
-w passwd specifies passwd as the bind password (for simple authentication).
-l login specifies login as the uid of the account to change; defaults to the current user.
Examples
The following is a command the directory administrator can use to change the password in the
directory for the user steves:
ldappasswd -h sys001.hp.com -p 389 -b "ou=people,o=hp.com" \ -D
"cn=directory manager" -w passwd -l steves
LDAP Directory Tools 153