Configuring Single Sign-On for Microsoft Entra ID Users

ManageEngine Key Manager Plus integrates seamlessly with Microsoft Entra ID (formerly Azure Active Directory), enabling organizations to leverage Entra ID's robust identity and access management capabilities for secure Single Sign-On (SSO). By configuring Key Manager Plus as a Service Provider (SP) and Microsoft Entra ID as an Identity Provider (IdP), users can centralize authentication processes, streamline access management, and enhance security through Entra ID's advanced authentication mechanisms. This integration ensures that users can log in once via Entra ID and gain access to Key Manager Plus without re-authentication, providing a simplified and secure user experience. This document covers the following topics:

1. Prerequisites

To configure Key Manager Plus as an SP on the Microsoft Entra ID portal, you need the SP details from the Key Manager Plus SSO configuration page. Navigate to Settings >> User Management >> SSO. Under Service Provider Details, copy the Entity ID and Assertion Consumer URL. You can also download the SP certificate file (spcert.cer) or the SP metadata file (metadata.xml) from this page to use while configuring Key Manager Plus as an SP on the Entra ID portal.

Note: As of now, there is no provision to import Microsoft Entra ID users directly into Key Manager Plus. Therefore, to allow Entra ID users to log into Key Manager Plus using the SSO mechanism, administrators should ensure that the users' Key Manager Plus login name is the same as their User Principal Name (UPN) in the Microsoft Azure portal.

2. Adding Key Manager Plus as an Enterprise Application in Entra ID Portal

Follow these steps to add Key Manager Plus as an enterprise application in the Azure portal.

  1. Log in to the Azure portal.
    azure-saml-sso-1
  2. Select Microsoft Entra ID under the Azure services section on the Microsoft Azure home page.
  3. On the Directory page, select Manage >> Enterprise Applications from the left pane.
  4. On the All Applications page, click the + New application button.
    azure-saml-sso-2
  5. On the Browse Microsoft Entra Gallery page, find the SAML 1.1 Token enabled LOB App application using the search function and click on it.
    azure-saml-sso-3
  6. On the page that appears, enter a desired name for the application (e.g., Key Manager Plus) and click Create. Users will see this application name under the My Apps section.
  7. Key Manager Plus will be added as an enterprise application on the Microsoft Entra ID portal. You will be redirected to the newly added Enterprise Application page.

3. Assigning Entra ID Users to the Key Manager Plus Enterprise Application

Follow these steps to assign Entra ID users to the Key Manager Plus enterprise application:

  1. On the Key Manager Plus Enterprise Application page, select Manage >> Users and groups.
  2. On the Users and groups page, click the + Add user/group button from the top pane.
    azure-saml-sso-4
  3. In the Add Assignment window, click the None Selected button under Users to access the Users window.
    azure-saml-sso-5
  4. In the Users window, you will see a list of all the Entra ID users in your directory. Tick the checkbox beside the desired users from the available list and click Select.
  5. Click Assign to assign the selected Entra ID users to the Key Manager Plus enterprise application.
    azure-saml-sso-6
  6. You will see the list of assigned users on the Key Manager Plus Users and groups page.

You have successfully assigned the Microsoft Entra ID users to the Key Manager Plus enterprise application.

4. Configuring SAML SSO for Entra ID Users in Key Manager Plus

Configuring SAML Single Sign-On (SSO) in the Entra ID portal involves setting up key components to enable seamless authentication with Key Manager Plus. The process includes Basic SAML Configuration, where you define the SP details in Microsoft Azure, followed by configuring the IdP details in Key Manager Plus.

4.1 Basic SAML Configuration

  1. Click the Single sign-on option under the Manage section on the left pane.
  2. Select SAML on the Single sign-on page. Set up the SAML configuration on the SAML-based Sign-on page.
    azure-saml-sso-7
  3. Click the Edit icon beside the Basic SAML Configuration section and enter the following details in the Basic SAML Configuration window that appears.
    1. Identifier (Entity ID) - Enter Key Manager Plus's Entity ID in this field.
    2. Reply URL (Assertion Consumer Service URL) - Tap the Add reply URL button and enter Key Manager Plus's Assertion Consumer Service (ACS) URL in this field. This is the endpoint URL on Key Manager Plus where Microsoft Entra ID will send the SAML responses.
    3. Sign on URL - Enter the Key Manager Plus access URL in the format https://<Host-Name-of-KMP-Server OR IP address>:<Port> in this field.
    4. Relay State (Optional) - Leave this field blank.
      azure-saml-sso-8
  4. Click the Save icon on the top pane to save the configured details.
  5. To download the IdP details as a metadata XML file, click the Download button beside the Federation Metadata XML field under the SAML Certificates section.
  6. The IdP details will be downloaded as an XML file to your machine, with the file name applicationname.xml. You can upload this XML file while configuring the IdP details in Key Manager Plus, eliminating the need to enter all the IdP information manually.

4.2 Configuring IdP Details in Key Manager Plus

After configuring Key Manager Plus as an SP in the Azure portal, you should configure Microsoft Entra ID as an IdP in Key Manager Plus to establish it as a trusted entity. Navigate to Settings >> User Management >> SSO in Key Manager Plus and proceed with Configure Identity Provider Details. Select Upload the IdP metadata file, browse for the Federation Metadata XML file downloaded in Section 4.1, and click Save. The Entra ID SAML SSO settings will now be saved in Key Manager Plus.

After saving, refresh the current page in Key Manager Plus. Under Import IdP's Certificate, you will see the current certificate details such as Issuer, Subject, and Serial Number. Click Save.

Additional system properties required for Entra ID SAML SSO:

For the Entra ID SAML integration to function correctly, navigate to <Key-Manager-Plus-Installation-Directory>\KMP\conf\system_properties.conf and verify that the following properties are present. If any are missing, append them below the existing properties and restart the Key Manager Plus server for the changes to take effect.

  • saml.redirect.idpprotocolbindingpost=true
  • saml.authcontext.comparison.exact=true
  • saml.AuthreqForceAuthn=false
  • saml.nameidFormat=unspecified
  • saml.idp.version=1.1
  • saml.authnContextClassRef=Password

4.3 Enabling SAML SSO in Key Manager Plus

The final step in configuring SAML SSO is to enable SAML Single Sign-On for Key Manager Plus users. On the SAML Configuration page, click Enable under Enable / Disable SAML Single Sign-On to activate SAML SSO.

To verify that the SSO configuration is working correctly, go to the Azure portal and click Validate under Validate single sign-on with Key Manager Plus on the enterprise application's Single sign-on page.




Top