Single Sign-On Configuration

Procedure for PI Web Components

To ensure that Single Sign-On works properly between the PI Web components, you must change their authentication template from basic to ticket . To do so, you have to perform the following steps:

Use the Visual Administrator and navigate to Server → Services → Security Provider

Choose tab page Runtime → Policy Configuration and specify the login module ticket from the Authentication template for each of the following PI Web components.

The PI Web components are:

sap.com/com.sap.xi.repository*rep

sap.com/com.sap.xi.directory*dir

sap.com/com.sap.xi.services*run

sap.com/com.sap.xi.rwb*rwb_mdt

sap.com/com.sap.xi.mdt*AdapterMessageMonitoring_basic

sap.com/com.sap.xi.mdt*AdapterMessageMonitoring_ssl

sap.com/com.sap.xi.mdt*mdt

sap.com/com.sap.xi.rwb*rwb

sap.com/com.sap.lcr*sld

sap.com/com.sap.rprof.remoteProfile*exchangeProfile

sap.com/com.sap.aii.af.app*AdapterFramework

All these changes are effective immediately and will still be effective after subsequent redeployments.

Access the Exchange Profile and set the following property totrue

com.sap.aii.ib.core.sso.enabled

Refresh the AII Properties .

Refresh the Integration Builder start page.

From now on, the logon dialog will be displayed only once and then no longer for each available component.

See also:

Configuring Authentication Mechanisms

Working with the Development Environment

Additional Procedure for the Repository and Directory

If you have used the following exchange profile parameters to configure the message server-based RMI/P4 logon to the Integration Repository and the Integration Directory, you must add ticket authentication to the login module stack of the componentservice.naming

com.sap.aii.connect.repository.mshost

com.sap.aii.connect.repository.mshttpport

com.sap.aii.connect.repository.mshttpsport

com.sap.aii.connect.directory.mshost

com.sap.aii.connect.directory.mshttpport

com.sap.aii.connect.directory.mshttpsport

Perform the following steps:

Use the J2EE Visual Administrator and navigate to Server → Services → Security Provider

Choose tab page Runtime -> Policy Configuration .

Choose component service.naming and add the new login module EvaluateTicketLoginModule to the login module stack.

Modify login module EvaluateTicketLoginModule as follows:

Set Position to1

Set Option ume.configuration.activetotrue

The resulting login module stack should look as follows:

Login Modules

Flag

Options

com.sap.security.core.server.jaas.EvaluateTicketLoginModule

SUFFICIENT

{ume.configuration.active=true}

BasicPasswordLoginModule

SUFFICIENT

{}

Additional Procedure for the Runtime Workbench

Since the Runtime Workbench communicates with AS ABAP, the Java logon ticket key pair must be modified, and the corresponding certificate must be exported from the J2EE Engine and imported to AS ABAP.

Change the client value of the Java logon ticket as described under Using Logon Tickets .

Use the Visual Administrator to navigate to Server → Services → Configuration Adapter

Expand the nodes cluster_data → server → cfg → services

Change to edit mode

Open the property sheet com.sap.security.core.ume.service .

Change the value of login.ticket_client to a client number that is not used in AS ABAP, for example 001.

Restart the J2EE Engine.

Create a new SAPLogonTicketKeypair certificate with a distinguished name (DN) other than the one used in AS ABAP.

Use the Visual Administrator and navigate to Server → Services → Key Storage

In the frame on the right-hand side, select TicketKeystore under Views on the Runtime tab page and mark the entry SAPLogonTicketKeypair-cert .

Choose Delete and delete the entry.

Do the same with the entry SAPLogonTicketKeypair .

Choose Create and create a new SAPLogonTicketKeypair entry with a DN other than the one used in AS ABAP.

Make sure that you

mark Store Certificate

use Key Length 1024

select Algorithm DSA

specify your <SID> as Common Name

fill the values for the other keys as appropriate

Export the SAPLogonTicketKeypair certificate of the J2EE Engine.

Use the Visual Administrator and navigate to Server → Services → Key Storage

In the frame on the right-hand side, select TicketKeystore and mark the entry SAPLogonTicketKeypair-cert .

Choose Export and export the certificate in either X.509 or Base64 Encoded format.

Import the J2EE certificate into AS ABAP.

Log on to the Integration Server (for example with client 100) and call transaction STRUSTSSO2.

In the Certificate frame, choose Import Certificate and select the previously exported J2EE SAPLogonTicketKeypair-cert. Use binary format for the X.509 and Base64 format for the Base64 Encoded formatted export.

Choose Add to Certificate List and Add to ACL . While adding the certificate to the access control list (ACL), specify the system ID (which is the certificate’s common name, that is, the value for CN= ) and the client (the client specified as login.ticket_client in the UME Provider service, 001 in this example).

Switch to fully qualified host names.

To ensure that Single Sign-On works properly, all services must be called with the fully qualified host name. Proceed as follows:

On AS ABAP, change the profile parameter icm/server_port_<n> to reflect the fully qualified host name in the HOST section.

Change the host name to a fully qualified one for the following parameters in the exchange profile:

com.sap.aii.rwb.server.centralmonitoring.r3.ashost (under Runtime Workbench )

com.sap.aii.connect.repository.name (under Connections )

com.sap.aii.connect.rwb.name (under Connections )

Use the Visual Administrator to change the host name and port numbers to fully qualified ones for the following properties of the J2EE service SAP XI AF CPA Cache:

SLD.selfregistration.httpPort

SLD.selfregistration.httpsPort

SLD.selfregistration.hostName

Enable Single Sign-On to a Remote J2EE Engine

If components are distributed across various SAP Application Servers, for example, if the SLD runs on a J2EE Engine other than the one used by PI, single sign-on can also be configured from the J2EE Engine of PI to the J2EE Engine of the SLD.

In this case, SAPLogonTicketKeypair-cert of the issuing J2EE Engine must be exported and imported into the keystore of the accepting J2EE Engine. The DN of the certificate and of the issuer must be entered for the login module.

In the procedure described below, the ticket issuer is the J2EE Engine of the PI system, and the J2EE Engine of the SLD has to accept the ticket.

Perform the following steps to export the certificate:

On the J2EE Engine of the PI system, start the Visual Administrator to export the SAPLogonTicketKeypair certificate of the J2EE Engine.

Choose Server → Services → Key Storage

In the right-hand frame, choose the view TicketKeystore and select the entry SAPLogonTicketkeypair-cert .

Choose Export and export the certificate in either X.509 or Base64 encoded format.

Copy the exported certificate to the host of the SLD’s J2EE Engine.

Perform the following steps to import the certificate:

On the J2EE Engine of the SLD, start the Visual Administrator to import the SAPLogonTicketKeypair certificate of the J2EE Engine.

Choose Server → Services → Key Storage

In the right-hand frame, choose the view TicketKeystore and then choose Load to import the previously exported certificate.

Note down the DN of the ticket ([DN]) and of the issuer ([IssuerDN]).

Perform the following steps to maintain the policy configuration:

If only one application on the remote J2EE Engine must be SSO-enabled, add the login ticket parameter to the component directly.

On the J2EE Engine of the SLD, start the Visual Administrator and choose Server → Services → Security Provider

In the right-hand frame, choose Policy Configuration → Components and select the component sap.com/com.sap.lcr*sld .

Switch to change mode.

On the Authentication tab page, mark the entry com.sap.security.core.server.jaas.EvaluateTicketLoginModule and choose Modify .

Add the following entries:

trustediss<n>

DN of the issuer of the login ticket certificate imported above.

trusteddn<n>

Own DN of the login ticket certificate.

trustedsys<n>

System ID <SID> of the Integration Server and client <client> specified as login.ticket_client in the UME Provider service com.sap.security.core.ume.service .

See also:

Configuring the J2EE Engine to Accept Logon Tickets .