IBMDO YOU?Hi, I'm MBO!

Settings

Make the site feel at home on your screen.

Theme

Loading your theme preference.

Keyboard shortcuts

Open search from anywhere, then move through the results without leaving the keyboard.

Open settings
Ctrl,or⌘,
Open search
CtrlKor⌘K
Select a search result
↑↓
Open the selected result
Enter
Close an open dialog
Esc

Invisible Bits of Maximo

Recover WebSphere administrator access after losing the password

Temporarily disable WebSphere administrative security offline, recover the administrator account and secure the cell again.

I Beat Maximo — confirmed solution

If every WebSphere administrator credential is unavailable but you still have authorised operating-system access to the Deployment Manager host, you can temporarily disable administrative security and recover access.

The WebSphere Integrated Solutions Console waiting for an administrator user ID and password

Before you begin: this procedure temporarily makes the administrative console available without authentication. Treat local access to the WebSphere configuration as privileged access, use a maintenance window, restrict network access to the console and do not start application servers while security is disabled. Back up the Deployment Manager profile and make sure you can restore it before changing anything.

This procedure applies to traditional WebSphere Application Server. It does not apply to WebSphere Liberty.

Identify the user repository

First establish where the administrator account is stored. The password recovery step depends on the configured repository:

  • For WebSphere's built-in file repository, reset the user through Users and Groups > Manage Users.
  • For LDAP or Active Directory, reset or restore the account in that directory.
  • For a local operating-system registry, use the operating system's account tools.
  • For another product-managed registry, follow that product's recovery procedure.

Do not use the Security Configuration Wizard to replace an existing federated-repository configuration. IBM describes that wizard as an initial setup tool for the built-in file repository; using it on an established LDAP or multi-repository realm can change more than the administrator password.

Stop and back up the Deployment Manager

Stop the Deployment Manager and the processes it manages. If the normal stop command requires the missing credentials, stop its operating-system service using an authorised administrator account.

From the Deployment Manager profile's bin directory, create a configuration backup. Replace the path with a protected location in your environment.

backupConfig.bat C:\WebSphereBackups\Dmgr01-before-security-recovery.zip

On Linux or Unix, use the corresponding script:

./backupConfig.sh /secure/backups/Dmgr01-before-security-recovery.zip

Keep the Deployment Manager stopped while applying the offline configuration change.

Disable administrative security offline

Open a command prompt as the operating-system account that owns or administers the Deployment Manager profile, then change to <DMGR_PROFILE_ROOT>/bin.

On Windows, start wsadmin in disconnected Jython mode:

wsadmin.bat -conntype NONE -lang jython

On Linux or Unix:

./wsadmin.sh -conntype NONE -lang jython

At the wsadmin> prompt, disable security, save the master configuration and exit:

securityoff()
AdminConfig.save()
quit

IBM documents this offline securityoff recovery procedure. It changes the security setting in the profile configuration without manually editing security.xml.

Start only the Deployment Manager. The Integrated Solutions Console should open without requesting a password.

The WebSphere Integrated Solutions Console with administrative security temporarily disabled and no password field

Keep the console reachable only from the machine or restricted administration network being used for recovery.

Recover the administrator account

For an administrator stored in WebSphere's built-in file repository:

  1. Open Users and Groups > Manage Users.
  2. Find and open the existing administrator user.
  3. Enter and confirm a strong new password.
  4. Select OK, then save the master configuration.

IBM's federated-repository user guidance confirms that the Manage Users page can update a file-repository user's password.

If the account comes from LDAP, Active Directory or the operating system, change its password there instead. Confirm that the account still exists, can authenticate and has a WebSphere administrative role. Do not create a second account with the same name in the built-in repository; duplicate identities across repositories can make authentication ambiguous.

Review scripts, services and tools that store the old administrator password. This can include soap.client.props, deployment automation, monitoring and backup tooling. Update each credential securely and use WebSphere's password encoder where a properties file requires it.

Re-enable security immediately

In the console, open Security > Global security, select Enable administrative security, apply the change and save the master configuration. Preserve the existing user-repository selection and configuration.

Stop and restart the Deployment Manager. Before starting the node agents or application servers, confirm that:

  • the console once again requests credentials;
  • the recovered administrator can sign in with the new password;
  • an incorrect password is rejected; and
  • the configured realm and primary administrative user are unchanged.

Start the node agents, synchronise the nodes and then start the application servers in the environment's normal order. Verify that the nodes remain connected, Maximo starts and administrative automation still works.

If the Deployment Manager does not start or the realm configuration is damaged, stop it and restore the configuration backup rather than making repeated changes.

Last resort: edit security.xml manually

If offline wsadmin cannot run, you can make the original configuration change directly. IBM documents this as an alternative method for manually disabling WebSphere security, but warns that an XML syntax error can corrupt the profile and prevent it from starting.

Stop the Deployment Manager before editing its configuration. Confirm that the full profile backup exists, then make a separate copy of this file:

<DMGR_PROFILE_ROOT>/config/cells/<CELL_NAME>/security.xml

Open the file in an editor that preserves its XML encoding and line endings. On the root <security:Security> element, find the administrative security attribute:

<security:Security
  ...
  enabled="true"
  ...>

Change only that attribute to false:

<security:Security
  ...
  enabled="false"
  ...>

The snippets are abbreviated examples; do not paste them over the complete element. Do not change appEnabled, repository definitions or any other enabled attribute elsewhere in the file. Compare the edited file with the backup and confirm that the one value is the only difference.

Start only the Deployment Manager, recover the administrator account using the repository-specific steps above, and keep console access restricted. Re-enable administrative security through Security > Global security and save the configuration.

If the console cannot save that change, stop the Deployment Manager again, change the same root attribute from enabled="false" back to enabled="true", and preserve the file's original ownership and permissions. Restart the Deployment Manager and complete all of the authentication, node-synchronisation and application checks above.

Find the fix

Search articles

Esc

Search titles, technical terms or error codes.