+

Search Tips   |   Advanced Search

Add realm support

A realm is a group of users from one or more user registries that form a coherent group within HCL WebSphere Portal. Realms allow flexible user management with various configuration options. A realm must be mapped to a Virtual Portal to allow the defined users to log in to the Virtual Portal. When we configure realm support, complete these steps for each base entry that exists in the LDAP and database user registry to create multiple realm support.

Before we configure realm support, add all LDAP user registries and database user registries to the federated repository. To create multiple realms, we must create all required base entries within the LDAP user registries and database user registries. All base entry names must be unique within the federated repository. Use either the IBM WebSphere Application Server operations (the addIdMgrRealmBaseEntry command) or the HCL WebSphere Portal Configuration Wizard (Add new LDAP) to add base entries.

In a stand-alone server environment, we can complete this task when the servers are either stopped or started. In a clustered environment, start the deployment manager and node agent and verify that they are able to synchronize.

  1. Use the WebSphere Application Server backupConfig task to create and store a backup of the HCL WebSphere Portal configuration. Read backupConfig command for information.

  2. Use a text editor to open the wkplc.properties file in the wp_profile_root/ConfigEngine/properties directory.
  3. Required: Enter a value for the following parameters in the VMM realm configuration section:

    Note: Review the properties file for specific information about the parameters.

    • realmName
    • securityUse
    • delimiter
    • addBaseEntry

  4. Save changes.
  5. Open a command line and change to the wp_profile_root/ConfigEngine.

  6. Add a realm to the Virtual Member Manager configuration:

    Important: To create multiple realms, ensure that the federated repository contains the correct unique base entries. Stop and restart the appropriate servers for the installation environment, and then update the wkplc.properties file with the base entry information and rerun the wp-create-realm task. Repeat these steps until all realms are created.

      ./ConfigEngine.sh wp-create-realm -DWasPassword=password

  7. Stop and restart the appropriate servers to propagate the changes. For instructions, go to Start and stop servers, deployment managers, and node agents.
  8. Required: Enter a value for the following parameters in the wkplc.properties file in the VMM realm configuration section:

    • realmName
    • realm.personAccountParent
    • realm.groupParent
    • realm.orgContainerParent

  9. Update the default parents per entity type and realm:

      ./ConfigEngine.sh wp-modify-realm-defaultparents -DWasPassword=password

  10. Stop and restart the appropriate servers to propagate the changes. Re-run the wp-modify-realm-defaultparents task to create more entity types and realms.

  11. Optional: Add more base entries to the realm configuration:

    For example, we have two more base entries (base entry 1 and base entry 2) to add to the realm you created. We must update the wkplc.properties file with the information from base entry 1 and then run this task. Then, update the properties file with the information for base entry 2 and then run this task.

    1. Enter a value for the following parameters in the wkplc.properties file in the VMM realm configuration section:

      • realmName
      • addBaseEntry

    2. Add more LDAP base entries to the realm configuration:

        ./ConfigEngine.sh wp-add-realm-baseentry -DWasPassword=password

    3. Stop and restart all necessary servers to propagate your changes.

  12. Optional: Complete the following steps to replace the WebSphere Application Server and HCL WebSphere Portal administrator user ID:

    Tip: Complete these steps if we changed the default realm.

    1. Create a user in the Manage Users and Groups portlet to replace the current WebSphere Application Server administrative user.

    2. Create a user in the Manage Users and Groups portlet to replace the current HCL WebSphere Portal administrative user.

    3. Create a group in the Manage Users and Groups portlet to replace the current group.

    4. Replace the old WebSphere Application Server administrative user ID and group ID with the new user and group:

        ./ConfigEngine.sh wp-change-was-admin-user -DWasUser=adminid -DWasPassword=password -DnewAdminId=newadminid -DnewAdminPw=newpassword -DnewAdminGroupId=newadmingroupid

    5. Verify that the task completed successfully. Stop and restart all servers.

    6. Replace the old HCL WebSphere Portal administrative user ID and group ID with the new user and group:

        ./ConfigEngine.sh wp-change-portal-admin-user -DWasPassword=password -DnewAdminId=newadminid -DnewAdminPw=newpassword -DnewAdminGroupId=newadmingroupid

      Important: We must provide the full distinguished name (DN) for the newAdminId and newAdminGroupId parameters. Additional parameter for stopped servers: This task verifies the user against a running server instance. If the server is stopped, add the -Dskip.ldap.validation=true parameter to the task to skip the validation.

    7. Verify that the task completed successfully. Stop and restart all servers.

  13. Complete the following steps to set the realm you created as the default realm:

    Only users defined in base entries that exist in the default realm are able to log in to HCL WebSphere Portal. If a user cannot log in to HCL WebSphere Portal, check whether the base entry that contains the user exists in the default realm. We can run the wp-query-realm-baseentry task to see what base entries are part of the default realm. If the default realm is missing the base entry, run the wp-add-realm-baseentry task to add the base entry to the default realm.

    1. Open the wkplc.properties file.

    2. For defaultRealmName, type the realmName property value we want to use as the default realm.

    3. Save changes.

    4. Set this realm as the default realm:

        ./ConfigEngine.sh wp-default-realm -DWasPassword=password

    5. Stop and restart all necessary servers to propagate your changes.

  14. Complete the following steps to query a realm for a list of its base entries:

    1. Open the wkplc.properties file.

    2. For realmName, type the name of the realm we want to query.

    3. Save changes.

    4. Run the following task to list the base entries for a specific realm:

        ./ConfigEngine.sh wp-query-realm-baseentry -DWasPassword=password

  15. Optional: Complete the following steps to enable the full distinguished name login if the short names are not unique for the realm:

    Tip: Run this task if the administrator name is in conflict with another user name in the attached repository. This command allows the Administrator to log in using the fully distinguished name instead of the short name.

    1. Open the wkplc.properties file.

    2. Enter a value for realmName or leave blank to update the default realm.

    3. Save changes.

    4. Run the following task to list the base entries for a specific realm:

        ./ConfigEngine.sh wp-modify-realm-enable-dn-login -DWasPassword=password

      Note: We can run the wp-modify-realm-disable-dn-login task to disable the feature.

    5. Stop and restart all necessary servers to propagate your changes.