Thursday, June 16, 2011

Change User Password in WCS

In some situations you might forget the password of a particular user in wcs and you would like to set a new password to that user. Actually the password is stored in the database in the encrypted format and the encryption keys used are the merchant key and the SALT column value in the USERREG table for the corresponding user. We can change the password using the following way
Using wcs_password utility
Go to bin folder of the WCS server and supply the command
wcs_password
The command generate the password in the encrypted format and printout in the console.
Copy the encrypted password from the console and directly update the USERREG table's LOGONPASSWORD column with the generated value and update the SALT column value with the SALT value you have given in the above command
Direct Database Update
This method can be done only if you know atleast one user's password. We have to copy the LOGONPASSWORD column and SALT column of the known user to the the unknown user

No comments:

Post a Comment