Resetting the wcsadmin user password (Runtime)
Steps:
1. Enter the following SQL statement:
select salt from userreg where logonid='wcsadmin';
2. Run the following command line script from the WC_installdir/bin directory:
$ wcs_password <password> <salt> <merchant key>;
For example:
$ wcs_password password hsdbacehyoyn 0123456789abcdef
3. Enter the following SQL statement:
update userreg set logonpassword=<hex encrypted version of password output from the wcs_password script> where logonid = 'wcsadmin';
For example:
update userreg set logonpassword=x'74434f61354f51593862415655304d5268424e54723865685653356151374a2b353163 where logonid = 'wcsadmin';
The wcs_password utility is used for encrypting user passwords to be stored in the WebSphere Commerce database.
Passwords are encrypted with a merchant key. The value of the merchant key could be specified through command line arguments or retrieved from calling out to the Key Locator Framework using the "-k" parameter.
Example 1
Encrypt password when merchant key is not retrieved from the Key Locator Framework: wcs_password pass1word rfKtuve 1234567890abcdef
Example 2
Encrypt password when merchant key is retrieved from the Key Locator Framework:
wcs_password pass1word rfKtuve -k WC_installdir\instances\xml\CustomKeys.xml
Changing the Configuration Manager password
You can change the password to access the Configuration Manager client. Two methods are available to change the password.
1. Change to the following directory
WC_installdir/bin
2. Issue the following command
./wcs_encrypt.sh new_password
Two encrypted versions of the new password will be generated:
ASCII encrypted string
HEX encrypted string
3. Open the PwdMgr.xml file in a text editor
WC_installdir/instances
4. Modify LoginPassword in the PwdMgr.xml file with the ASCII encrypted password from step 2 and save your changes.
Generating WebSphere Commerce encrypted passwords
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.
1. Change to the following directory
WC_installdir/bin
2. Run the wcs_password to generate the encrypted password.
3. To change the encrypted password for customers, use the chgwcspwd.sh command.
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.
Steps:
1. Enter the following SQL statement:
select salt from userreg where logonid='wcsadmin';
2. Run the following command line script from the WC_installdir/bin directory:
$ wcs_password <password> <salt> <merchant key>;
For example:
$ wcs_password password hsdbacehyoyn 0123456789abcdef
3. Enter the following SQL statement:
update userreg set logonpassword=<hex encrypted version of password output from the wcs_password script> where logonid = 'wcsadmin';
For example:
update userreg set logonpassword=x'74434f61354f51593862415655304d5268424e54723865685653356151374a2b353163 where logonid = 'wcsadmin';
Generate WebSphere Commerce encrypted password (wcs_password)
The wcs_password utility is used for encrypting user passwords to be stored in the WebSphere Commerce database.
Passwords are encrypted with a merchant key. The value of the merchant key could be specified through command line arguments or retrieved from calling out to the Key Locator Framework using the "-k" parameter.
Example 1
Encrypt password when merchant key is not retrieved from the Key Locator Framework: wcs_password pass1word rfKtuve 1234567890abcdef
Example 2
Encrypt password when merchant key is retrieved from the Key Locator Framework:
wcs_password pass1word rfKtuve -k WC_installdir\instances\xml\CustomKeys.xml
Changing the Configuration Manager password
You can change the password to access the Configuration Manager client. Two methods are available to change the password.
1. Change to the following directory
WC_installdir/bin
2. Issue the following command
./wcs_encrypt.sh new_password
Two encrypted versions of the new password will be generated:
ASCII encrypted string
HEX encrypted string
3. Open the PwdMgr.xml file in a text editor
WC_installdir/instances
4. Modify LoginPassword in the PwdMgr.xml file with the ASCII encrypted password from step 2 and save your changes.
Generating WebSphere Commerce encrypted passwords
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.
1. Change to the following directory
WC_installdir/bin
2. Run the wcs_password to generate the encrypted password.
3. To change the encrypted password for customers, use the chgwcspwd.sh command.
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.
No comments:
Post a Comment