Change the Neo4j repository password with optional new encryption key

Use the Spectrum Platform Password Management Utility to change the password using an optional new encryption key for the Neo4j repository. The utility accepts a new password and encryption key from the user and generates and stores the encrypted string for the new password.

The Spectrum Platform Password Utility is located in the SpectrumDirectory/server/bin directory. Supported entity types are neo4j for encrypting the password to the Spectrum Platform Neo4j repository and spatial for encrypting the password to the Spectrum Spatial Apache Jackrabbit repository. This topic describes how to change the password to the Spectrum Platform Neo4j repository. Refer to the Spectrum Spatial Guide to encrypt a Jackrabbit repository password for Spatial.
  1. Stop the Spectrum server.
    For instructions on how to restart the Spectrum server, see Starting and Stopping the Server.
  2. On Windows, open a PowerShell or Command prompt window as administrator.
    In the Windows search box enter PowerShell or Command Prompt, then click Run as administrator.
  3. Depending on the configuration, go to the bin directory:
    ConfigurationGo to this bin directory
    Server and database on same machine SpectrumDirectory/server/bin
    Database-only machine DatabaseDirectory/repository/bin
    Server-only machine SpectrumDirectory/server/bin
  4. Type the following command :
    Operating systemCommand
    Windows pmu.bat neo4j
    Linux pmu.sh neo4j
  5. When prompted, enter the following information:
    PromptEnter
    Enter Old Password:
    Enter the existing password for the Neo4j server. This prompt does not appear if the old password is the initial default password.
    Enter New Password:
    Enter the new password for the Neo4j server. New password should be at least 10 characters long and follow any additional secure password rules defined by your organization.
    Enter encryption key:
    Enter a string of at least 10 characters for the encryption key. The encryption key should contain only alphanumeric characters. Special characters should not be used.

    If you leave this entry blank and press Enter, the password utility will use the default key for the Spectrum installation.

    Enter installation type:
    Enter one of the following to specify the Spectrum installation type:
    • 1—For a server only installation
    • 2—For a database only installation
    • 3—For a standard installation (both database and server on the local host machine)
    Do you wish to change the password?
    Press y to change and encrypt the new password.
  6. Restart the Spectrum server.
    For instructions on how to restart the Spectrum server, see , see Starting and Stopping the Server.

The Neo4j repository password is now changed. You can view the password in its encrypted format in the spectrum-container.properties file. The spectrum.repository.password setting is located in the Spectrum repository settings section of this file.