You can generate encrypted passwords in order to manually reset the password of a user from a command line. There are other tools (such as the ResetPassword command) that accomplish the same task. To manually reset the password, the administrator would take the encrypted password that is output by the utilities and update the LOGONPASSWORD field of the USERREG table. The administrator would also update the SALT field of the USERREG table with the chosen salt.
WebSphere Commerce allows you to generate encrypted passwords. To generate encrypted passwords:
Go to the WC_installdir/bin directory.
Go to the WC_installdir\bin directory.
- Run the following script from a command line:
wcs_password.bat password SALT merchant_key
./wcs_password.sh password SALT merchant_key
where:
- password
- The plain text password.
- SALT
- A random string that is used in the generation of a password. This is found in the SALT column of the USERREG database table for the particular user whose password is being updated. The SALT should be unique for each user.
- merchant_key
- The merchant key that was entered during instance creation.
To change the encrypted password for shoppers, use the chgwcspwd.sh command.
- Start a QShell session by entering the following command: STRQSH.
- Navigate to the following directory: WC_installdir/bin
- Run the following script: chgwcspwd.sh (The usage parameters will be displayed.)
- Run the command again using the appropriate parameters.