Using encrypted passwords with Pentaho products
How you apply an encrypted password varies by product.
Pentaho Data Integration (PDI)
Perform the following steps to use an encrypted password with Pentaho Data Integration (PDI).
Stop the server.
For instructions on stopping the server, see Stop and start the Pentaho Server and repository.
Navigate to the
design-tools/data-integration/simple-jndidirectory.Open the
jdbc.propertiesfile with any text editor.Replace all instances of the password value with the encrypted password.
Save and close the file.
Restart the server and verify that all passwords are now using encrypted values.
Pentaho User Console (PUC)
Perform the following steps to use an encrypted password with the Pentaho User Console (PUC).
Stop the server.
For instructions on stopping the server, see Stop and start the Pentaho Server and repository.
Navigate to the
server/pentaho-server/tomcat/webapps/pentaho/META-INFdirectory.Open the
context.xmlfile in any text editor.Replace the password value in every Resource element with the encrypted password.
Save and close the file.
Restart the server and verify that all passwords are now using encrypted values.
PUC email
After you have configured the Pentaho User Console (PUC) with an encrypted password, you can use that password with PUC email.
Perform the following steps to use an encrypted password with PUC email.
Log in to PUC as an administrator.
Open the Administration Perspective and click the Mail server section.
Enter your encrypted password value in the password field.
Note: If you use Gmail, enable allow less secure apps to access your account.
Click Test Email Configuration.
Verify that an email was sent to the address you specified.
Pentaho Aggregation Designer
To use encrypted passwords with Pentaho Aggregation Designer, you must first centralize your passwords in a jndi.properties file.
Perform the following steps to use an encrypted password with the Pentaho Aggregation Designer.
Stop the server.
For instructions on stopping the server, see Stop and start the Pentaho Server and repository.
Create a
jndi.propertiesfile to set the default properties:Save the
jndi.propertiesfile in thedesign-tools/aggregation-designer/libdirectory.In the user’s home directory, navigate to the
.pentaho/simple-jndidirectory.Open the
default.propertiesfile with any text editor.If
default.propertiesdoes not exist, create it.If you created
default.propertiesunderdesign-tools/aggregation-designer/simple-jndi, updateorg.osjava.sj.rootindesign-tools/aggregation-designer/lib/jndi.propertiesto point to it. Example:
Replace the password value in every property in
default.propertieswith the encrypted password.Note: If you use a remote repository, change localhost to the remote repository IP address.
Save and close the file.
Restart the server and verify that all passwords are now using encrypted values.
Pentaho Metadata Editor (PME)
The Pentaho Metadata Editor (PME) stores passwords in the JNDI connection default.properties file. For setup details, see Define JNDI connections for Report Designer and Metadata Editor.
Perform the following steps to use an encrypted password with the PME:
Stop the server.
For instructions on stopping the server, see Stop and start the Pentaho Server and repository.
In the user’s home directory, navigate to the
.pentaho/simple-jndidirectory.Open the
default.propertiesfile with any text editor.Note: If
default.propertiesdoes not exist, create it.Replace the password value in every property in the file with the encrypted password.
Note: If you use a remote repository, change localhost to the remote repository IP address.
Save and close the file.
Restart the server and verify that all passwords are now using encrypted values.
Pentaho Report Designer (PRD)
The Pentaho Report Designer (PRD) stores passwords in the JNDI connection default.properties file. For setup details, see Define JNDI connections for Report Designer and Metadata Editor.
Perform the following steps to use an encrypted password with the PRD:
Stop the server.
For instructions on stopping the server, see Stop and start the Pentaho Server and repository.
Navigate to the
design-tools/report-designer/configuration-template/simple-jndidirectory.Open the
default.propertiesfile with any text editor.Replace the password value in every property in the file with the encrypted password.
Note: If you use a remote repository, update the localhost address to the correct IP. Use the encrypted password for every occurrence of the password.
Save and close the file.
Copy
default.propertiesto the.pentaho/simple-jndidirectory in the user’s home directory. Replace the existing file.Note: If the
.pentaho/simple-jndidirectory does not exist, create it.Restart the server and verify that all passwords are now using encrypted values.
After you update a product
After you configure a product to use encrypted passwords, all logins with that product use encrypted passwords.
Connect to any databases you updated to verify the changes.
Last updated
Was this helpful?

