This chapter contains the following:
For each service using a relational database, a separate database instance is configured with default userid and password. The default userid is portal and the default password is a random string generated during installation. Change the default password and the access permissions of the properties files containing the password.
Restart Java DB.
See Starting, Stopping, and Disabling the Java DB in Sun Java System Portal Server 7.1 Configuration Guide for more information.
Change the password for the default user, portal, by connecting to the surveysdb_portal-ID database.
For example, if you are using a GUI like SQuirrel-j, use the SQL editor to execute the following command after connecting to the database:
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.authentication.provider', 'BUILTIN'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.connection.requireAuthentication', 'true'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.user.portal', 'your-new-password'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.database.fullAccessUsers', 'portal'); CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.database.defaultConnectionMode', 'noAccess'); |
Restart Java DB.
See Starting, Stopping, and Disabling the Java DB in Sun Java System Portal Server 7.1 Configuration Guide for more information.
Verify that the password was set correctly by connecting to the surveysdb_portal-ID database with new password.
For each portal instance:
Refer to the web container's documentation and set the password for the jdbc/SurveysDB datasource to the new password that was set in step 2.
Open the PortalServer-DataDir/portals/portal-ID/portletapps/surveys/tokens.properties file and change the password value for the DB_ADMIN_PASSWORD and DB_PASSWORD properties to the new password that you set in step 2.
Change the permissions for the PortalServer-DataDir/portals/portal-ID/portletapps/surveys/tokens.properties file so that it is readable and writable only by the owner.
For example, type chmod 600 tokens.properties.
Restart the web container.
The Surveys and Polls portlets include the following tokens in the PortalServer-base/portletapps/surveys/tokens.properties file:
Specifies the library where Java DB class files derbyclient.jar are located.
Specifies the host server that host the Java DB.
Specifies the port that the Java DB server host listens to for database requests.
Specifies the Portal's ID.