Skip to Content

For an overview of Duet Enterprise 1.0 User Mapper, refer to the following post:

[User Mapping in Duet Enterprise 1.0 | User Mapping in Duet Enterprise 1.0]

For a production installation of Duet Enterprise, it is recommended that user mapping be done using an LDAP.   This ensures that valid sap ids are mapped to valid Sharepoint User ids. 

Usernames in SharePoint and Duet Enterprise are usually different (for example, in SharePoint: DOMAINADS-User; in SAP: SAPUSER).

This technique can be used if your company is using an LDAP field to map the SAP user id.  This method can also be used if Sharepoint and SAP user ids are the same. In the latter case, you can use the ADS attribute sAMAccountName.

A connection to the LDAP is required.  Before configuration, you will need to know the following information

    • ADS Domain
    • ADS field where the SAP User ID will be stored
    • ADS base entry (folder) where users will be stored

The steps are also outlined in the Duet Enterprise SAP Deployment Guide as well as the Duet Enterprise Security Guide found on the SAP service marketplace. 

To create the connection, follow these steps:

h3. 1)      Create a type T (TCP/IP connection) RFC destination in the SCL in transaction SM59.

*RFC Destination:              RFC-<LDAP System Name></p><p>Description:                       RFC Connection to <ADS Domain name> for LDAP sync</p><p>Program ID:*                Prog-Save it.  When you do Connection test, it will fail at first with a Logon Connection Error message

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_1.jpg|height=421|alt=|width=320|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_1.jpg!

h3. 2)      Create a user for the LDAP Connection

On the SCL, go to transaction LDAP and click System Users

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_2.jpg|height=136|alt=|width=364|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_2.jpg!

Click edit, then New Entries

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_3.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_3.jpg!

Enter the details of the new user

*User ID:                                Make up the name of a system user </p><p>Distinguished Name:*     Service user to connect to the ADS to read user entries (include domain)

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_4.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_4.jpg!

Click on the edit icon next to credentials and add the password. Click Green check, then save the user.

h3.  3)      Maintain an LDAP server (via transaction LDAP)

 In the SCL, go to transaction LDAP

  !https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_6.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_6.jpg!

 Click Edit and then New Entries and enter the following information:

*Server Name:   Make up a name for the server for example, SRV-<ADS system name></p><p>Host Name:                 ADS Host Name</p><p>Port Number:*          Default is 389

Product Name:        Choose type of ADS you are using – use Microsoft Windows 2003

Active Directory (Domain Model) even if you have ADS 2008 (see note 983808)

Product Version:     Choose Version of your ADS – LDAP Version 3

*LDAP Application:    Choose User</p><p>Default:*                 Check this flag

Base Entry:            The base entry on which the users are stored in the ADS. In our example, if you go to the ADS server and navigate to the Active Directory Users and Computers, all our users for Duet Enterprise are in the Duet_Enterprise folder.  These are the only ones we want to map to SAP IDs in the SCL. We used the string: 

OU=Duet_Enterprise,DC=dev84,DC=dev-wdf,DC=sap,DC=corp

System Logon: Use F4 to retrieve the user you created in the previous step

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_8.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_8.jpg!

Save the configuration.

h3.  4)      To activate the LDAP connection:

In the SCL, navigate to transaction LDAP and click LDAP Connectors

 !https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_9.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_9.jpg!

Click Edit and click New Entries.

*Connector Name:         Press F4 and select the previously created RFC destination in step 1</p><p>Application Server:      Press F4 and select the active instance of the SCL server </p><p>Status:                         *Select Connector is active.

*Trace Level:                 *Select Trace Off.

*Page Size:                    *Enter a page size (entries per page) if your ADS has more than 1000 entries, for example, 200

 !https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_10.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_10.jpg!

Click Save and start the connector by clicking on the activate button .  The *Current Status *icon should change to yellow.

Click Save and then the *Current Status *icon should change to green.

h3. 5)      Determine which LDAP attribute contains the SAP User ID. 

In this example, we are using the ADS attribute extensionAttribute1.  

 !https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_11.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_11.jpg!

h3. 6)      To configure the user mapping types.

Navigate to transaction SIMGH and select *Service Consumption layer Administration *

Choose Consumer Settings and Select User Mapping type

Add a new entry and enter LDAP based user mapping, LDAP server you created in the previous steps and the LDAP attribute to be used for mapping.  If the Sharepoint and SAP user ids are the same, enter the attribute sAMAccountName.  Otherwise, enter the attribute from step 5.

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_13.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_13.jpg!

h3. 6)      Run the user mapping tool.

Navigate to the Service Consumption Layer Administration IMG and select Map SAP User Names to Consumer

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_15.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_15.jpg

Enter the following information

    1. SCL client
    2. User – you can run for a range of SAP user ids, individual or for all SAP user ids in the SCL
    3. External ID type = SA
    4. Prefix of External Name = SharePoint::
    5. Suffix is blank
    6. Name of Issuer – This refers to the Sharepoint Security Token Service.  You can get this string from the imported Sharepoint Security Token Service Certificate in STRUST.   Use the Owner string of the certificate.  In most cases it will be “CN=SharePoint Security Token Service, OU=SharePoint, O=Microsoft, C=US”.
    7. BAdI Implementation: SharePoint Integration bulk user mapping

It is recommended to run this tool in test mode first to ensure mapping is found for users and to also delete all other entries for the SAP user id as there should only be one SharePoint User mapped per SAP user id.

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_16.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_16.jpg

Check the results of the tool to ensure the user ids are mapped correctly. 

h3. 7)      Check the mapping entries in transaction SM30 for table VUSREXTID

!https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_18.jpg|alt=|src=https://weblogs.sdn.sap.com/weblogs/images/251726826/UserMap2_18.jpg!

User Mapping is complete.  This tool can be run multiple times to map new users as required.  

 

 

 

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Chris Paine
    This is not really a blog but a Wiki page or a tech article – perhaps you could replicate it in a Wiki?
    Thanks for sharing it though!
    (0) 
    1. Linda Peruzzi Post author
      Hi Chris,

      I’ll keep it in mind for future posts.  Probably would have been better on the wiki.  Thanks for the comment.

      …LInda

      (0) 

Leave a Reply