Configuring Anonymous Logon with Named Anonymous Users

Prerequisites

This procedure requires you to restart SAP NetWeaver Application Server (AS) Java, so you should plan for the required downtime while the AS Java restarts.

Context

Use this procedure to configure the portal for anonymous logon with named anonymous users and using anonymous as the authentication scheme. The anonymous users are not issued a logon ticket.

By setting up anonymous logon with one or more named anonymous users, you can assign roles containing anonymous content to the named anonymous users. You can either assign the roles to the users individually or to the group Anonymous Users. If you define more than one anonymous user, you can assign different roles to the different anonymous users and set up different URLs to the portal, enabling you to control the anonymous content that portal users see.

Procedure


  1. Create the anonymous users.

    For more information about creating users, see Identity Management .

  2. Enter the user ID of the anonymous users in the user management engine (UME) property ume.login.guest_user.uniqueids.

    For more information, see Editing UME Properties .

  3. Restart the AS Java.

    After you restart the AS Java, the users you defined in ume. login. guest_user. uniqueids are automatically included in the Anonymous Users group.

  4. Create a role in which, for all pages and iViews, Authentication Scheme is set to anonymous.

    By default iViews and pages that are part of the framework page, such as navigation iViews and the framework page itself, are defined as anonymous content. However, if you have created your own versions of these, you must ensure that they are set to the authentication scheme anonymous.

    For more information about creating roles, see Content Administration .

    For more information about changing page and iView properties, see Defining Property Attributes .

  5. Assign the anonymous role you created to one of the anonymous users or to the Anonymous Users group.

  6. Assign a Portal Framework Page for the anonymous logon with named anonymous users.

    For more information, see Configuring the Display of Portal Content .

Results

You have configured the portal for anonymous logon. Users can access the portal in anonymous mode by entering the following URL:

<protocol> :// <hostname> : <port> /irj/portal/anonymous

They are then logged on as the first user in the list of anonymous users in ume.login.guest_user.uniqueids. Users do not have to provide any form of authentication, unless one of the pages or iViews in the roles assigned to the anonymous user is not set to anonymous .

A log on link appears in the header area. When the user clicks on this link, the form-based logon screen appears giving users the option to register as portal users.

Possible Variations

  • Using a specific named anonymous user for anonymous logon

    By default, users are logged on as the first user in the list of anonymous users in ume.login.guest_user.uniqueids . Optionally, you can define that a specific anonymous user is used to access the portal in anonymous mode by defining the guest_user parameter in the portal URL.

  • Redirecting the standard portal URL to the anonymous portal

    Rather than using the specific URL <protocol> :// <hostname> : <port> /irj/portal/anonymous to access the portal anonymously, you can redirect the standard portal URL <protocol> :// <hostname> : <port> /irj so that users are redirected to the anonymous version of the PortalLauncher iView when they launch this URL.

    You redirect the standard portal URL as follows:

    1. On the file server, open the following file:

      <drive> :\usr\sap\ <SID> \ <instance_number> \j2ee\cluster\serverX\apps\sap.com\irj\servlet_jsp\irj\root\index.html

      Make a backup copy of the file.

      This file contains the following line:

      <body onload="location.replace('portal' + document.location.search)"></body>

    2. Change this line to the following:

      <body onload="location.replace('servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.anonymous' + document.location.search)"></body>

    3. Restart the AS Java.

      As a result, when users now launch the portal using the standard portal URL <protocol> :// <hostname> : <port> /irj they are logged on as an anonymous user.