Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun[TM] Identity Manager 8.0 Installation Guide 

Appendix C  
Changing the Database Repository Password

If you are using a DBMS (such as MySQL, Oracle, Sybase, DB2, or SQL Server) as the location for the Identity Manager repository, it may be necessary to change the database connection password or username periodically. The procedure for changing these values depends on how Identity Manager connects to the database.


When Identity Manager Stores the Password

Use the following procedure to:

If Identity Manager connects to the repository with a JDBC driver, or if it connects to the repository using a DataSource that does not contain the connection user name and password, then use the following procedure to change the user or password:

  1. Archive a copy of the existing ServerRepository.xml file, in case you need to revert. By default, this file is located in $WSHOME/WEB-INF.
  2. If you have deployed the Identity Manager web application in an application server cluster, you should operate on the main source folder for Identity Manager (from which the application server deploys the IDM web application), rather than on each target folder (to which the application server deploys the web application on a particular server or node within the cluster).

  3. Shut down the Identity Manager web application. If you have deployed the Identity Manager web application in a cluster, then you must stop all instances of the web application across the cluster.
  4. Verify the existing repository:
  5. lh setRepo -c

    Identity Manager responds with the current repository information; for example:

    MysqlDataStore:jdbc:mysql://localhost/waveset

  6. Create a temporary file system repository location:
  7. mkdir c:\tempfs

  8. Set Identity Manager to use the temporary file system repository location:
  9. lh setRepo -tLocalFiles -fc:\tempfs
    LocalFiles:c:\tempfs

  10. Change the password for your repository. This procedure depends on the mechanism provided by your repository provider. This example highlights steps for a MySQL database:
  11. mysqladmin.exe -hlocalhost -uwaveset -poldpasswd password newpasswd

  12. Set the application to use the modified repository information:
  13. lh setRepo -tMysql -ujdbc:mysql://localhost/waveset
    -Uwaveset
    -Pnewpasswd

    The application responds with this warning:

    WARNING: No UserUIConfig object in repository.
    MysqlDataStore:jdbc:mysql://localhost/waveset


    Note

    The warning message appears because the temporary file system that you pointed to has no contents. Ignore this message; after running the command, the temporary file system will no longer be needed.


  14. Verify the new repository value:
  15. lh setRepo -c

    The application responds with the new value:

    MysqlDataStore:jdbc:mysql://localhost/waveset

  16. Restart the server and verify that you can log in. If you have deployed the Identity Manager web application in a cluster, then you must re-deploy the Identity Manager across the cluster. This will distribute the updated web application (which includes the updated ServerRepository.xml file), to all nodes in the application server cluster.
  17. Remove the c:\tempfs temporary directory, and the ServerRepository.xml file that you archived in Step 1.


When the DataSource Stores the Password

If Identity Manager connects to the repository via a JDBC data source, and the data source contains the user name and password, then use the following procedure to change the username or password.

  1. Stop the Identity Manager web application. If you have deployed Identity Manager in an application server cluster, stop the application on all hosts.
  2. Change the password for the connection user name in the DBMS instance that you are using as your repository location. For example, on MySQL
  3. mysqladmin.exe -hlocalhost -uwaveset -poldpasswd password newpasswd

  4. Change the password that is stored on the DataSource object using the tools provided by the application server, directory server, or DBMS that manages your DataSource object.
  5. Re-start the server and verify that you can login. If you have deployed the Identity Manager web application in a cluster, then you must re-deploy the Identity Manager across the cluster. This will distribute the updated web application (which includes the updated ServerRepository.xml file), to all nodes in the application server cluster.


Previous      Contents      Index      Next     


Part No: 820-2956-10.   Copyright 2008 Sun Microsystems, Inc. All rights reserved.