OpenDS LDAP Client Utilities Commands -- ldappasswordmodify
ldappasswordmodify
The ldappasswordmodify command modifies LDAP passwords.
Synopsisldappasswordmodify options
DescriptionThe ldappasswordmodify command can be used to change or reset user passwords with the LDAP password modify extended operation as defined in RFC3062
?
Example?100 Modifying and Generating a Password for Another User
The following command connects to the host (-h) using port 1389 (-p), specifies the bind DN (-D), specifies the bind password file (-j), and modifies and generates a password for another user (-a) connecting over simple authentication. For Windows platforms, specify the file where the bind password file resides, for example, -j \temp\bindPasswordFile.
$ ldappasswordmodify -h hostname -p 1389 -D "cn=Directory Manager" -j /tmp/bindPasswordFile \-a "dn:uid=abergin,ou=People,dc=example,dc=com"The LDAP password modify operation was successfulGenerated Password: blb44hjm
?
Example?101 Modifying a Password for Another User
The following command connects to the host (-h) using port 1389 (-p), specifies the bind DN (-D), specifies the bind password file (-j), and modifies the password with a new one (-N) for another user (-a) connecting over simple authentication. For Windows platforms, specify the bind password file (for example, -j \temp\bindPasswordFile) and the new password file (for example, -N \temp\newPassword).
$ ldappasswordmodify -h hostname -p 1389 -D "cn=Directory Manager" -j /tmp/bindPasswordFile\-a "dn:uid=abergin,ou=People,dc=example,dc=com" -N /tmp/newPasswordThe LDAP password modify operation was successful
?
Exit CodesAn exit code of 0 indicates that the operation completed successfully. A nonzero exit code indicates that an error occurred during processing.
Using a CLI Properties FileThe directory server supports the use of a properties file that passes in any default option values used with the ldappasswordmodify command. The properties file is convenient when working in different configuration environments, especially in scripted or embedded applications. See Using a Properties File With Server Commands for more information.
The following options can be stored in a properties file:
authzIDEntries in the properties file have the following format:
toolname.propertyname=propertyvalue
?
For example:
ldappasswordmodify.ldapport=12345
?
Location UNIX and Linux: install-dir/bin/ldappasswordmodify