Setting the spiuser password in HCL Commerce Developer
You must set the spiuser user password in your HCL Commerce development environment to allow
for your HCL Commerce servers to function together as expected.
About this task
The default password for the spiuser user in the provided sample DB2 Docker
container is:
- HCL Commerce 9.1.9.0 or
greater:
QxV7uCk6RRiwvPVaa4wdD78jaHi2za8ssjneNMdu3vgqi
- HCL Commerce 9.1.0.0 to 9.1.8.0:
passw0rd (with a zero)
If you specified a different password during Loading the HCL Commerce Developer database schema, then you must update your server properties so that
the password is synchronized with the one that is in the database.
Important: Even if you are using the default provided
password with HCL Commerce 9.1.9.0 or greater, you must run the
setSpiuserPassword utility with the default password. For your
convenience, the example in the procedure includes the default password
value.
Procedure
-
Open a command line interface and navigate to the
WCDE_installdir\bin\ directory.
Set your spiuser user password in your HCL Commerce development environment. The method that you will use depends on the version of HCL Commerce Developer that you are using.
Version Procedure Using HCL Commerce 9.1.9.0 or greater - Use the setSpiuserPassword utility to set the spiuser user
password throughout your HCL Commerce development environments.In the command prompt, run:
For example:setSpiuserPassword spiuser_plain_text_password
setSpiuserPassword QxV7uCk6RRiwvPVaa4wdD78jaHi2za8ssjneNMdu3vgqi
- Generate the merchantKey encrypted password, and store it in the
database.
- Obtain the salted spiuser password from the database.Open a database command line prompt, and run the following against your database.
select salt from userreg where logonid='spiuser';
- Generate the encrypted spiuser password.
In a separate command prompt, run the following HCL Commerce command utility located in the /opt/WebSphere/CommerceServer90/bin/ directory.
./wcs_password.bat plain_text_spiuser_password salt unencrypted_merchantKey_value
- Store the encrypted password in the database.In the database command line prompt, update the encrypted password.
update userreg set logonpassword=x'encrypted_hexadecimal_output' where logonid = 'spiuser';
Note: Thex'encrypted_hex_output'
is required to store the value in hexadecimal format.
- Obtain the salted spiuser password from the database.
Using HCL Commerce 9.1.0.0 to 9.1.8.0 - Encrypt the spiuser user password, and update your Transaction server.
- Navigate to the WCDE_installdir\bin\ directory.
- Run the wcs_encrypt command to encrypt the
spiuser user
password.
Ensure that the spiuser_plain_text_password is the same plain text password that you specified in Loading the HCL Commerce Developer database schema.wcs_encrypt.bat spiuser_plain_text_password
- Copy the ASCII encrypted string.
- Update the password for the Transaction server.
- Open the WCDE_installdir/wasprofile/config/cells/localhost/nodes/localhost/servers/server1/server.xml file.
- Update the value of the system property spi.password with the ASCII encrypted string.
- Generate the merchantKey encrypted password, and store it in the
database.
- Obtain the salted spiuser password from the database.Open a database command line prompt, and run the following against your database.
select salt from userreg where logonid='spiuser';
- Generate the encrypted spiuser password.
In a separate command prompt, run the following HCL Commerce command utility located in the /opt/WebSphere/CommerceServer90/bin/ directory.
./wcs_password.bat plain_text_spiuser_password salt unencrypted_merchantKey_value
- Store the encrypted password in the database.In the database command line prompt, update the encrypted password.
update userreg set logonpassword=x'encrypted_hexadecimal_output' where logonid = 'spiuser';
Note: Thex'encrypted_hex_output'
is required to store the value in hexadecimal format.
- Obtain the salted spiuser password from the database.
- Update the ASCII encoded password value in the Search server and Store server to the one
that was generated in step #a.ii.
- Open the Liberty_installdir/usr/servers/crsServer/jvm.options file.
- Update the value of the spi.password with the ASCII encrypted string.
- Open the Liberty_installdir/usr/servers/searchServer/jvm.options file.
- Update the value of the spi.password with the ASCII encrypted string.
- Save and close both files.
- Update the encrypted password in the WebSphere Application Server V8.5.5 Liberty
configuration for the Search server and Customization server.
- In a command line interface, go to Liberty_installdir/bin/.
- Run the following command to encrypt the plain text spiuser
password.
securityUtility.bat encode spiuser_plain_text_password
- Copy the output string.For example,
{xor}Lz4sLChvLTs=
- Open the Liberty_installdir/usr/servers/searchServer/configDropins/overrides/userregistry.xml file.
- Update the value of the password with the output string.
- Open the Liberty_installdir/usr/servers/commerceueServer/configDropins/overrides/userregistry.xml file.
- Update the value of the password with the output string.
- Save and close both files.
- Use the setSpiuserPassword utility to set the spiuser user
password throughout your HCL Commerce development environments.
- If the Transaction, Search, Store, or Customization servers are running, restart the servers.