Saturday, November 21, 2009

How to restore WebSphere Portal back to the out-of-the-box security configuration

One of my colleague was engaged in an assignment this week where he needed to revert back the existing security with LDAP to out-of-the-box security (File repository). Here are the steps which we followed to complete this task.

We are using portal 6.1. So, we need to install the required patch for this task. We installed PK73815 and update the Portal configuration. You can down load this APAR from the IBM fix central.

  • Modify the wkplc.properties file for the following changes. Add this properties at the end fo the file.
# The realm name to be used. A realm with this name will be created.
restore.file.realm=federatedRealm
restore.file.delimiter=/

# Portal and WAS admin UID (short name) and password
restore.file.primaryAdminId=adminUID
restore.file.primaryAdminPassword=adminPWD

# CN of portal admin group (short name)
restore.file.primaryPortalAdminGroup=adminGroupCN

  • Make sure that your WAS admin password and your Portal admin password are populated in wkplc.properties file.
  • Start Websphere Application Server and Websphere Portal server before running the task.
  • Navigate to the /opt/ibm/WebSphere/wp_profile/ConfigEngin directory. Run the following command from here.
    wp-restore-default-repository-configuration
  • The wp-restore-default-repository-configuration task allows you to return to the default VMM setup with a federated file repository. The task will create a new realm, delete all existing repositories, and configure a file repository in VMM.
  • If you want the admin user to be added to the admin group, restart both the servers and run the following command from /opt/ibm/WebSphere/wp_profile/ConfigEngin
    wp-restore-default-repository-add-group-member
This process will revert back your repository back to out-of-the-box security.

References:
http://www-01.ibm.com/support/docview.wss?rs=688&ca=portall2&uid=swg21368395

No comments: