Integrate Active Directory with SAP single sign-on (Kerberos-SPNEGO)
Active Directory can be integrated with SAP single sign-on by configuring your SAP system with SNC (Secure Network Communication). The primary purpose of SNC is to secure connections between the NetWeaver ABAP application server and external applications, including SAP GUI. SNC provides an interface for external security products that can be used to enable single sign-on.
Integrate SAP SSO with Active Directory
Configure the SAP system: Starting with NetWeaver ABAP version 7.31, use the configuration wizards (transactions SNCWIZARD and SPNEGO) in your SAP system to configure SSO. For earlier versions of NetWeaver ABAP, or if you don’t have access to the configuration wizards, you can configure SSO manually:
- Create a new AD user to be used as the service account for the NetWeaver ABAP system (preferably with a nonexpiring password).
- Use SETSPN to register the Service Principal Name (SPN) of the user created in the previous step.
- Install CommonCryptoLib on your SAP system.
- Set the SECUDIR directory (SECUDIR directory is the directory where the CommonCryptoLib license ticket file and PSE files reside). To set a directory as your SECUDIR. directory, create a new environment variable called SECUDIR and point it to a directory. For example: \usr\sap[SID]\DVEBMGS00\sec
- In your SAP instance, set the profile parameters referencing the location of the sapcrypto.dll and the newly created SPN.
- Restart the SAP instance.
- Create the Kerberos Keytab file and the corresponding SAP Cryptolib PSE file for Kerberos-based SNC.
Configure user mapping:
- Sign in to your SAP instance via SAPGUI and run transaction SU01.
- Enter your SAP user (or the user that you want to map for SSO) in the name field and select Edit.
- Select the SNC tab and type the SNC name you configured in the previous task in the format p:CN=UserPrincipalName@domain.
Install secure login software on client computers.
Configure SAP GUI for SNC communication.
- In the Secure Network Settings interface, type the SNC name in the format p:CN=ServicePrincipalName@domain.
- Initiate a connection. You should be signed in without being prompted to enter a password.