Integration of SAP central user administration with Microsoft Active Directory



Similar documents
Integration of SAP Netweaver User Management with LDAP

3 rd party Service Desk interface

Configuring Distribution List in Compliant User Provisioning

Using SAP Logon Tickets for Single Sign on to Microsoft based web applications

Collaboration Technology Support Center - Microsoft - Collaboration Brief

SAP CCMS Monitors Microsoft Windows Eventlog

How To Configure MDM to Work with Oracle ASM-Based Products

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

Implementing Outlook Integration for SAP Business One

CREATING A PURCHASE ORDER STORE RECORD WEB SERVICE

E-Recruiting Job Board Integration using XI

Developing Applications for Integration between PI and SAP ERP in Different Network Domains or Landscapes

Ronald Bueck SBO Product Definition

Sales Rush Sales Order Processing S01- Lean Baseline Package. SAP Lean Baseline Package Version: V1.500 Country: UK Language: EN Date: February 2006

Posting Messages into XI

Extract Archived Data from SAP ERP

Process Archiving using NetWeaver Business Process Management

How to Create Web Dynpro-Based iviews. Based on SAP NetWeaver 04 Stack 09. Jochen Guertler

Performance Best Practices Guide for SAP NetWeaver Portal 7.3

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Global Transport Label - General Motors -

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

Integrate Third Party Collaboration Tools in the SAP NetWeaver Portal. SAP NetWeaver Product Management

Backup & Restore with SAP BPC (MS SQL 2005)

Enterprise Software - Applications, Technologies and Programming

SAP Master Data Governance- Hiding fields in the change request User Interface

Methodology to Implement SAP Process Integration

SAP NetWeaver MDM 5.5 SP3 SAP Portal iviews Installation & Configuration. Ron Hendrickx SAP NetWeaver RIG Americas Foundation Team

Understanding HR Schema and PCR with an Example

Monitoring and Management of Landscapes with SAP NetWeaver Administrator. Dieter Krieger, SAP AG

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

How To Balance In Sap Bw

Third Party Digital Asset Management Integration

HR400 SAP ERP HCM Payroll Configuration

Problems with your Data Model in SAP NetWeaver MDM Do s and Don ts

Analyzing Sales Data for Choosing Forecast Strategies

prioritize XI messages on integration server

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

Enabling Full-Text Search for Business Objects in mysap ERP

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How to configure BusinessObjects Enterprise with Citrix Presentation Server 4.0

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Integrating Easy Document Management System in SAP DMS

Integration of Universal Worklist into Microsoft Office SharePoint

Data Archiving in CRM: a Brief Overview

SAP NetWeaver BRM 7.3

Service Level Reporting for Business Process Monitoring

SAP Sales and Operations Planning Software Product (xsop)

How to Schedule Report Execution and Mailing

Utilities for downloading and uploading OO ABAP classes in XML format

Budget Control by Cost Center

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

Log Analysis Tool for SAP NetWeaver AS Java

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

Consume an External Web Service in a Nutshell with good old ABAP

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

SAP SYSTEM MEASUREMENT GUIDE

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

How-to-Guide: Middleware Settings for Download of IPC Configuration (KB) Data from R/3 to CRM System

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

K in Identify the differences between the universe design tool and the information design tool

ERP Quotation and Sales Order in CRM WebClient UI Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

SAP DSM/BRFPlus System Architecture Considerations

Integration of Outlook Web Access (OWA) into SAP Enterprise Portal

How to Configure and Trouble Shoot Notification for Process Control 2.5

Workflow extended notifications

How to Create a Support Message in SAP Service Marketplace

SAP xapp Resource and Portfolio Management (SAP xrpm)

SAP NetWeaver 04 Security Guide. Security Guide for SAP Mobile Infrastructure

Sending Additional Files from SAP Netweaver PI to third Party System

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

Data Source Enhancement Using User Exit

USDL XG WP3 SAP use case. Kay Kadner

BC407 Reporting: QuickViewer, InfoSet Query and SAP Query

Roster Configuration (Payroll) in SAP ECC 6.0 Tips & Tricks

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

HR Data Retrieval in a LDAP- Enabled Directory Service

OData in a Nutshell. August 2011 INTERNAL

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

How To Use the BPC Mass User Management Tool in BPC 10.0 NW

User Experience in Custom Apps

mysap ERP Talent Management Dr. Christian Acosta-Flamma

DATA ARCHIVING IN SAP R/3 ENTERPRISE. Georg Fischer PM Data Archiving SAP AG

How To... Integrate Custom Formulas into the Formula Builder

Single Sign-On between SAP Portal and SuccessFactors

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

BW Workspaces Use Cases

Variable Exit in Sap BI How to Start

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

SEM and Budget Preparation. David Reifschneider Sr. Consultant, SAP SI America

SAP HANA Cloud Integration Document Version: Template Guide for SAP Sales and Operations Planning

SAP NetWeaver 7.0 Migration of Business Explorer and BI Integrated Planning. Tobias Kaufmann SAP NetWeaver RIG Business Intelligence

AP Integration with BRFplus VERSION V APRIL SAP AG

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

mysap Business Solutions on Linux

Transcription:

Collaboration Technology Support Center Microsoft - Collaboration Brief June 2005 Integration of SAP central user administration with Microsoft Active Directory Chris Kohlsdorf, Senior System Architect SAP NetWeaver, REALTECH AG Walldorf André Fischer, Project Manager Collaboration Technology Support Center, SAP AG Summary As system landscapes become more and more complex efficient identity management becomes a key success factor in IT organizations. Often the same identity information has to be maintained in lots of different IT systems. This leads to a great administrative overhead for creating, updating and deleting user data in all involved systems. Focussing on an entire SAP system landscape the integration of SAP CUA (central user administration) with Microsoft Active Directory Services can be the first step in implementing identity management in your IT infrastructure. The benefit is a huge reduction of administrative efforts and more consistent data across the different participating systems. Applies to SAP Web Application Server Microsoft Active Directory 2000 Microsoft Active Directory 2003 Keywords Directory synchronization, identity management, central user administration Level of difficulty Technical consultants, Developers Contact For feedback or questions you can contact the Collaboration Technology Support Center at ctsc@sap.com. Please check the.net interoperability area in the SAP Developer Network http://www.sdn.sap.com/sdn/developerareas/dotnet.sdn for any updates or further information. You can contact REALTECH at customer-services@realtech.de. 1

Copyright 2004 SAP AG. All rights reserved. All other product and service names mentioned are the trademarks of their respective companies No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iseries, pseries, xseries, zseries, z/os, AFP, Intelligent Miner, WebSphere, Netfinity, Tivoli, and Informix are trademarks or registered trademarks of IBM Corporation in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mysap, mysap.com, xapps, xapp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. 2

Contents Summary...1 Applies to...1 Keywords...1 Level of difficulty...1 Contact...1 Contents...3 Introduction...4 Scenario... 4 Technical Basis...5 The SAP LDAP Connector... 5 LDAP_RFC... 6 SAP CUA... 8 Implementation...8 Transaction LDAP... 8 Mapping... 10 Mapping using function modules... 11 Synchronization... 12 Extensions to the standard...13 Assigning Active Directory Groups to SAP ABAP roles... 13 Maintain SAP specific attributes in Active Directory... 14 Conclusion...15 Limitations...15 References...16 3

Introduction As already mentioned in the short summary above the scenario used for this collaboration brief deals with two key components: Microsoft Active Directory and SAP Central User Administration. Active Directory, being the integrated, distributed directory service included with Microsoft Windows Server 2003 and Microsoft Windows 2000 Server, provides a central user repository used to centrally maintain user data, thus avoiding the redundant, errorprone maintenance of user information in several systems. Most organizations already use Active Directory to organize and manage information about all kinds of their different resources like users, computers, applications and so on. While the user management engine (UME) used by SAP Enterprise Portal can use a central Active Directory as its user persistence store ABAP systems use their own database as user store. SAP s central user administration (CUA) can be used to maintain SAP user master records in one central system and distribute this information in a consistent way to connected child systems. This provides a single point of administration of all SAP user data in the entire SAP system landscape in one central system. This document describes the benefits of a synchronization of user data between an LDAP directory (e.g. Microsoft s Active Directory) and SAP systems. In the outlined scenario MS Active Directory will become the leading system for storing common user data. As a result users newly created in the directory will be synchronized and created in the SAP CUA. For user data that has been updated in the directory this new information is also synchronized into the SAP system and updated there as well. The SAP CUA will be used to distribute all the user data that has been imported from the directory to all its connected child systems. Scenario The following screenshot provides an overview of the outlined scenario discussed in this guide: 4

Central User Administration (CUA) Synchronize user data ABAP System Active Directory Distribution of user data Child systems of CUA ABAP System ABAP System ABAP System Figure 1 - Scenario overview Technical Basis The SAP LDAP Connector The following part gives a short introduction to the technological mechanism providing the synchronization functionality between the directory service and the SAP system the so-called SAP LDAP Connector. The protocol used for communicating with a directory is usually the Lightweight Directory Access Protocol (LDAP). The SAP LDAP connector allows direct access to directories within ABAP applications using the LDAP protocol. It provides this functionality in form of an API for connecting and searching, reading and editing of directory entries. This API has already been shipped with the basis release 4.6. But this release does not provide any functionality to synchronize user master data between SAP and the Active Directory. This functionality was first introduced with basis release 6.x that is used for SAP s Web Application Server architecture and is therefore also available for all components based on SAP s NetWeaver platform. The following figure shows the architecture of the LDAP connector: 5

SAP Synchronization Delta management LDAP interface with mapping ABAP Mapping = shipped with 6.10 = shipped with 4.6 LDAP API LDAP Connector ldap_rfc.exe Active Directory Figure 2 - Architecture of SAP LDAP Connector LDAP_RFC From technical point of view the LDAP connector is represented by the program ldap_rfc that is running as a registered server program. The communication between the Active Directory and the executable ldap_rfc is performed using the standardized access protocol LDAP. The LDAP protocol is normally using the TCP/IP port 389. There are two possible options how to set up the LDAP Connector: a) The LDAP connector can run as part of the SAP Application Server. In this case the executable in the directory usr\sap\<sid>\sys\exe\run (Windows) or /usr/sap/<sid>/sys/exe/run (UNIX) is used. b) The LDAP connector can run as a standalone program on a dedicated server with access to the Active Directory. Option a) is shown in the following figure LDAP Connector as part of the SAP application server : 6

SAP Application Server RFC Active Directory / DC Work Process LDAP Connector LDAP Active Directory Figure 3 - Option a) LDAP Connector as part of the SAP application server If the LDAP connector is running as part of the SAP application server it can be monitored and managed using the CCMS. The CCMS alert monitor can monitor the load (percentage of used LDAP- connections) and the status (UP or DOWN) of the LDAP Connector. CCMS will also start the LDAP connector if it is down. Since the LDAP connector loads the LDAP library of the operating system at runtime it is a prerequisite that the operating system is offering such an LDAP library. This prerequisite is fulfilled by Windows 2000/2003 since Windows 2000/2003 is shipped with the required DLL. Option b) can be used as a workaround if no LDAP library for the desired operating system is available. In such a case there is the option to run the LDAP Connector as a standalone program on a dedicated server as shown in the following figure: SAP Application Server Active Directory / DC RFC Work Process LDAP Connector LDAP Active Directory Figure 4 - Option b) LDAP Connector as standalone program on dedicated server The drawback of using option b) is that the LDAP connector is not part of the SAP Application Server and can therefore not be monitored and managed using the CCMS. However, since the LDAP connector can be implemented as a service on the Windows operation system it can be monitored by common monitoring tools. 7

SAP CUA As mentioned above, SAP systems, which should be connected to the Active Directory directly, must be based on basis release 6.x of SAP Web Application Server. If the systems are based on release 4.6 or lower it is possible to implement the SAP Central User Administration (CUA) on a SAP Web Application Server, which then acts as a kind of LDAP gateway. Since also SAP Systems that are based on the Web Application Server can be added as child systems to the SAP CUA the directory enabled SAP CUA can be used to distribute data across the whole SAP system landscape while still offering the possibility to maintain SAP specific data in the central system rather than in the Active Directory. Implementation Transaction LDAP Central point of administration for all settings regarding SAP s LDAP Connector is transaction LDAP. Here you can configure the required RFC destinations, set up a new LDAP connector, create a new logical LDAP server, maintain communication users as well as maintain the mapping and synchronization details. Figure 5 - Transaction LDAP The required steps are in detail: Create an RFC Destination to the program LDAP_RFC 8

Create a new LDAP Connector that utilizes the RFC destination maintained before Create a new logical LDAP Server. Here you have to maintain the connection details to the physical directory Maintain the communication user that is used by the LDAP connector to bind the LDAP Directory Server. The binding information (username and password of a Active Directory user) is stored in the secure storage. 9

Now you can already test the connection to the directory: Mapping In transaction LDAPMAP specific SAP data fields can be mapped to the desired directory attributes. SAP offers directory specific proposals for the mapping of the directory attributes to the SAP data fields. After importing the proposal the mapping details can be customized as desired. Active Directory users, which should be selected for the synchronization with the SAP system, are identified by one specific so-called filter attribute. If this attribute is set for an Active Directory user object the synchronization report RSLDAPSYNC_USER will either create a SAP user with that SAP username in SAP system (here SAP CUA) if it does not already exists or it will update the SAP user if the user has been changed in the Active Directory for example because the phone number of that user has changed. The following screenshot shows a default mapping: 10

Figure 6 - Mapping of SAP data fields to directory attributes For each attribute there is the option to specify whether the customized mapping is only valid for import, export or for both ways of synchronization. Mapping using function modules If the desired mapping is not a simple 1:1 relationship, function modules can be used to enable a more complicated mapping procedure. A simple example is the telephone number. The telephone number of a user is stored in the directory attribute telephone (in MS Active Directory). The extension is normally split by a hyphen -. In SAP the telephone number of a user is stored in two data fields ADDRESS-TEL1_NUMBR and ADDRESS-TEL1_EXT. Therefore the function module MAP_SPLIT_CHAR can be used. This module reads the value for the telephone number from the directory attribute telephone. The extension is split at the position where the system finds a hyphen - in the string and the two values are stored in the SAP data fields ADDRESS- TEL1_NUMBR and ADDRESS-TEL1_EXT. 11

Figure 7 - Mapping using function modules Synchronization The report RSLDAPSYNC_USER selects all the users, which are to be synchronized with Active Directory. It is to be scheduled regularly. Furthermore the report can be scheduled as an event triggered job that can be started by the user administrators using the external SAP program sapevt. The following screenshot shows report RSLDAPSYNC_USER: 12

Figure 8 - Report RSLDAPSYNC_USER Using transaction LDAPLOG the protocols of the LDAP synchronizations can be monitored. Extensions to the standard Assigning Active Directory Groups to SAP ABAP roles To provide synchronisation of role assignments the interface BC-LDAP-USR expects the name of the SAP roles to be stored in a multi-value attribute called SAProles. The problem with using this setup is how to fill this attribute with the appropriate information. The SAP user management engine (UME) offers the option to assign portal roles to groups stored in Active Directory if Active Directory is used as user persistence store. To achieve a comparable functionality out of the box it must be possible to map SAP roles to Microsoft Active Directory groups. 13

Therefore REALTECH has developed a special report which creates Active Directory groups from SAP roles. Users in Active Directory can now be assigned to these groups which correspond to roles in the SAP system. During synchronization a custom function module retrieves the information about the user s group membership and assigns the corresponding SAP role to the user. Using this mechanism described above it is possible to leverage Active Directory group memberships for SAP role assignment also for SAP ABAP user management. As a result Active Directory users and SAP users can be administered at a single location. The following screenshot shows the exported SAP roles that appear as groups in the directory: Figure 9 - Exported SAP roles appear as groups in the AD Maintain SAP specific attributes in Active Directory Using Microsoft s MMC Snap-In Users and Computers it is not possible to maintain attributes others than those delivered as standard attributes by Microsoft. Though it would be possible to use a low level LDAP editor such as the MMC Snap-In ADSI Edit this is no user-friendly solution since it would be necessary to use a different tool in the AD for the SAP user administration. Because of this REALTECH has developed a Property Page extension DLL for the Users and Computers Snap-In that makes it possible to maintain the attribute sapusername (which can be imported into the directory using a schema extension delivered by SAP) in a separate property page SAP of the Users and Computers Snap-In. The following screenshot shows the new property page SAP in the MMC: 14

Figure 10 - Extension of MMC Snap-In Users and Computers The property page also provides a button for immediate synchronization. The button triggers a corresponding event in the SAP system, which then starts the report for user synchronization. Conclusion Implementing synchronization between SAP CUA and MS Active Directory provides an easy way to reduce administrative effort and helps to raise the quality of available user data across the entire system landscape. SAP s LDAP Connector can easily be configured and works seamless with Microsoft Active Directory as it does with other common directory services available on the market. Limitations Please keep in mind that the LDAP Connector is only available on SAP systems based on Web Application Server. Sometimes a schema extension to the relevant directory might be necessary. Please be aware that schema extensions to directories can often not be reverted (e.g. MS Active Directory). The Extensions to the standard described in this collaboration brief are only available as a consulting solution by REALTECH. 15

References SAP Online Help http://help.sap.com http://service.sap.com/security Security in Detail Identity Management Directory Services Success Story EnBW http://wwwsmart.sap.com/d/0066086_energie_baden_württemberg_ag_s..pdf SAP Technical Brief on SAP NetWeaver Platform and Microsoft Active Directory https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents /a1-8- 4/SAP%20Technical%20Brief%20on%20SAP%20NetWeaver%20Platform%20and% 20Microsoft%20Active%20Directory.pdf 16