2011-2013ForgeRock ASldappasswordmodify1OpenDJldappasswordmodifyperform LDAP password modificationsldappasswordmodifyoptionsDescriptionThis utility can be used to perform LDAP password modify operations in
the directory.OptionsThe following options are supported.Authorization ID for the user entry whose password should be changedThe authorization ID is a string having either the prefix
dn: followed by the user's distinguished name, or
the prefix u: followed by a user identifier that
depends on the identity mapping used to match the user identifier to
an entry in the directory. Examples include
dn:uid=bjensen,ou=People,dc=example,dc=com, and, if
we assume that bjensen is mapped to Barbara Jensen's
entry, u:bjensen.Use the bind DN as the authorization ID for the password modify
operationCurrent password for the target userPath to a file containing the current password for the target userPath to a file containing the new password to provide for the
target userUse a request control with the provided informationNew password to provide for the target userLDAP Connection OptionsDN to use to bind to the serverDefault value: cn=Directory ManagerUse the authorization identity controlDirectory server hostname or IP addressDefault value: localhost.localdomainBind password file Certificate key store pathNickname of certificate for SSL client authenticationSASL bind optionsDirectory server port numberDefault value: 389Certificate trust store pathUse StartTLS to secure communication with the serverCertificate trust store PINCertificate key store PIN fileCertificate trust store PIN fileUse the password policy request controlLDAP protocol version numberDefault value: 3Password to use to bind to the serverCertificate key store PINTrust all server SSL certificatesUse SSL for secure communication with the serverUtility Input/Output OptionsNo properties file will be used to get default command line
argument valuesPath to the file containing default property values used for
command line argumentsDisplay usage informationUse verbose modeGeneral OptionsDisplay version informationDisplay usage informationExit Codes0The command completed successfully.ldap-errorAn LDAP error occurred while processing the operation.LDAP result codes are described in RFC
4511. Also see the additional information for details.89An error occurred while parsing the command-line arguments.FilesYou can use ~/.opendj/tools.properties to set
the defaults for bind DN, host name, and port number as in the following
example.hostname=directory.example.com
port=1389
bindDN=uid=kvaughan,ou=People,dc=example,dc=com
ldapcompare.port=1389
ldapdelete.port=1389
ldapmodify.port=1389
ldappasswordmodify.port=1389
ldapsearch.port=1389ExamplesThe following example demonstrates a user changing the password
for her entry.$ cat /tmp/currpwd.txt /tmp/newpwd.txt
bribery
secret12
$ ldappasswordmodify -p 1389 -C /tmp/currpwd.txt -N /tmp/newpwd.txt
-A -D uid=kvaughan,ou=people,dc=example,dc=com -w bribery
The LDAP password modify operation was successful