Disabling All Default Passwords for Users

Previous versions of SAP Commerce Cloud included default passwords for test and development users. Ensure you have no remaining default passwords in your system after an upgrade by following this procedure.

Context

If you have been using essential, project, and sample data with users that have default passwords, it is possible you may still have some of those passwords in your system. To improve security, you can use the following procedure to check whether you have any default passwords defined, and then replace them with more secure passwords. All default passwords get replaced with randomized, secure alternatives, and login for any non-administrative users that previously had default passwords is disabled. Carrying out these steps helps strengthen your system against unauthorized access.

Get the scripts for this procedure, see SAP Note 2922193 Information published on SAP site.

Procedure

  1. Download the Groovy scripts package from SAP Note 2922193 Information published on SAP site, and unzip the file.
  2. Log in to Administration Console.
  3. Go to Start of the navigation pathConsole Next navigation step Scripting Languages Console Next navigation step Edit Statement.End of the navigation path
  4. Change Script Type to groovy.
  5. Copy the password_check.groovy script to the editor area.
  6. Click Execute.

    The Result tab opens and displays a report. The report lists users with default or common passwords.

  7. Go to Edit Statement.
  8. Copy the password_randomize.groovy script to the editor area.
  9. Switch the toggle bar to Commit.
  10. Click Execute.

Results

All users included in essential, project, and sample data that previously had default passwords have now random passwords. Non-administrative users with default passwords are disabled.