How to reset the administrator's password in the file registry

Technote (FAQ)


Question

If you forget your WebSphere Application Server administrator's password and/or your WebSphere Portal administrator's password, and your administrative users are stored in the file registry, how can you reset the forgotten password in the file registry?

Answer

The Changing Passwords page of the WebSphere Portal 6.1 Information Center discusses how to change administrative passwords by editing the user's profile via WebSphere Portal. However, in the case of a forgotten password, you can resolve the issue by performing the steps in the applicable section below.

Resetting WebSphere Portal administrative user's password

  • Navigate via command prompt to <wp_profile_root>/bin
  • Issue the following and press Enter: wsadmin -conntype NONE
  • Issue the following and press Enter: $AdminTask changeFileRegistryAccountPassword {-userId <wpsadmin_ID> -password <wpsadmin_new_password>}
  • Issue the following and press Enter: $AdminConfig save
The above commands should reset the user's password in the fileRegistry.xml located in <wp_profile>/config/cells/<cellname>. However, note that you will still need to run the Portal ConfigEngine task(s) to update the configuration with the new password information:
  • Navigate via command prompt to <wp_profile_root>/ConfigEngine
  • Issue the following command: ConfigEngine wp-change-portal-admin-user -DnewAdminId=<wasadmin_DN> -DnewAdminPw=<wasadmin_new_password>-DnewAdminGroupId=<wpsadmins_DN> -Dskip.ldap.validation=true
  • If your WebSphere Application Server admin user is the same ID as your Portal admin user, then also issue the following command: ConfigEngine wp-change-was-admin-user -DnewAdminId=<wasadmin_DN> -DnewAdminPw=<wasadmin_new_password> -Dskip.ldap.validation=true
  • Restart the servers including Portal.
Note: "DN" signifies that the full distinguished name of the user or group should be used (e.g.uid=wpsadmin,o=defaultWIMFileBasedRealm). When passing in the group ID, you can reference the existing Portal admin group DN.

Resetting WebSphere Application Server administrative user's password
  • Login to Portal with your Portal admin user.
  • Navigate to the Manage Users and Groups portlet under Administration and search for your WebSphere Application Server admin user.
  • Reset the user's password.

Note that while the previous steps update the password in the fileRegistry.xml located in <wp_profile>/config/cells/<cellname>, you need to ensure the configuration is updated as well by proceeding with the remaining steps:
  • Navigate via command prompt to <wp_profile_root>/ConfigEngine
  • Issue the following command: ConfigEngine wp-change-was-admin-user -DnewAdminId=<wasadmin_DN> -DnewAdminPw=<wasadmin_new_password> -Dskip.ldap.validation=true
  • Restart the servers including Portal.

Related information

changeFileRegistryAccountPassword command


Rate this page:

(0 users)Average rating

Document information


More support for:

WebSphere Portal
VMM - Virtual Member Manager

Software version:

6.1

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows, i5/OS, z/OS

Software edition:

Enable, Express, Extend, Server

Reference #:

1392427

Modified date:

2009-11-29

Translate my page

Machine Translation

Content navigation