Configuring Idira Identity SSO provider to OWA
Objective
This document will walk you through the necessary steps to configure Idira Identity as a WS-Fed provider to Microsoft Exchange ECP and OWA. By doing so Idira Identity will become the primary authentication method for ECP and OWA.
Below are the basic steps that need to be done during the configuration:
-
Create a new Custom WS-Fed application in Idira Identity for ECP
-
Create a new Custom WS-Fed application in Idira Identity for OWA
-
Export Certificate from Idira Identity
-
Import the Idira Identity certificate into the Exchange Trust Store
-
Configure Microsoft Exchange to trust the Idira Identity certificate.
-
Configure Microsoft Exchange ECA to use WS-Fed for SSO
-
Configure Microsoft Exchange OWA to use WS-Fed for SSO
Environment
21.1;21.2;21.3;21.4;21.5;21.6;21.7;21.8;21.9;21.10;21.11;21.12;22.1;22.2;22.3;22.4 Identity App Access Service
Procedure
Create WS-Fed application in CyberArk Identity for ECA
The first thing that we need to do is create a new custom WS-Fed application in CyberArk Identity. Login to the admin console for your tenant to start the configuration.
From the admin portal select “Web Apps” from the left-hand menu.
Once the Web Apps page loads click the “Add Web Apps” from upper right-hand corner in the admin portal. This will launch the “Add Web Apps" wizard.
Select the “Custom” tab at the top left and scroll down on the right-hand side until you see the WS-Fed connector. Then click “Add”.
Once the “Add Web App” confirmation screen loads click “Yes” to add the new WS-Fed application.
Now click “Close” to proceed to the new WS-Fed Application configuration.
On the Application Settings tab, set the “Resource Application URL” to the URL for ECA and click “Save”.
Note: Place close attention to the URL and the tailing “/” make sure you place the “/’ on both the “Resource Application URL” and use it during the OWA configuration.
Next we need to copy the Identity Provider Sign-in URL into the Issuer box. This is necessary for a SP initiated SSO. Since OWA only uses one URL about the federation.
Click on the “Permissions” in the left-hand menu and add a Role or User tot have permissions to View and Run.
Click on the “Advanced” in the left-hand menu and add the following Script to the window.
This script will build the assertions so MS Exchange can use them.
setVersion('1');
setIssuer(Issuer);
setCustomAttribute('upn', 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn', LoginUser.Username);
setCustomAttribute('objectsid', 'http://schemas.microsoft.com/ws/2008/06/identity/claims', LoginUser.Get('objectSid'));
setServiceUrl(ServiceUrl);
setSubjectName(LoginUser.Username);
addSubjectToAttrStatement('True');
setAuthenticationMethod('urn:federation:authentication:windows');
setAudience(ServiceUrl);
setRecipient(ServiceUrl);
setSignatureType('Assertion');
setHttpDestination(ServiceUrl);
Click Save. This completes the CyberArk Identity configuration for Microsoft Exchange ECP.
Create WS-Fed application in CyberArk Identity for OWA
The second thing that we need to do is create a new custom WS-Fed application in CyberArk Identity. Login to the admin console for your tenant to start the configuration.
From the admin portal select “Web Apps” from the left-hand menu.
Once the Web Apps page loads click the “Add Web Apps” from upper right-hand corner in the admin portal. This will launch the “Add Web Apps wizard.
Select the “Custom” tab at the top left and scroll down on the right-hand side until you see the WS-Fed connector. Then click “Add”.
Once the “Add Web App” confirmation screen loads click “Yes” to add the new WS-Fed application.
Now click “Close” to proceed to the new WS-Fed Application configuration.
On the Application Settings tab, set the “Resource Application URL” to the URL for ECP and click “Save”.
Note: Place close attention to the URL and the tailing “/” make sure you place the “/’ on both the “Resource Application URL” and use it during the OWA configuration.
Next we need to copy the Identity Provider Sign-in URL into the Issuer box. This is necessary for a SP initiated SSO. Since OWA only uses one URL about the federation.
Click on the “Permissions” in the left-hand menu and add a Role or User tot have permissions to View and Run.
Click on the “Advanced” in the left-hand menu and add the following Script to the window.
This script will build the assertions so MS Exchange can use them.
setVersion('1');
setIssuer(Issuer);
setCustomAttribute('upn', 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn', LoginUser.Username);
setCustomAttribute('objectsid', 'http://schemas.microsoft.com/ws/2008/06/identity/claims', LoginUser.Get('objectSid'));
setServiceUrl(ServiceUrl);
setSubjectName(LoginUser.Username);
addSubjectToAttrStatement('True');
setAuthenticationMethod('urn:federation:authentication:windows');
setAudience(ServiceUrl);
setRecipient(ServiceUrl);
setSignatureType('Assertion');
setHttpDestination(ServiceUrl);
Click Save.
Import signed certificate into CyberArk Identity
Microsoft Exchange requires a singed certificate to trust. This certificate can either be from an internal Microsoft CA or it can be from a Public CA. But they cannot use CyberArk Identity self-signed certificate. Once you have obtained a certificate and the corresponding password, login to CyberArk Identity and proceed to the Web Apps that we configured previously.
Select Upload New Signing Certificate.
Enter a Name and Password then click on Browse to select the file.
You should be brought back to the security certificate selection screen. Copy the thumbprint value as you will need it for the next step.
Configure Microsoft Exchange to trust the CyberArk Identity certificate
To configure the Exchange organization to use AD FS authentication, you need to use the Exchange Management Shell. To complete this section you will need 3 pieces of information for each WS-Fed configuration:
-
The Issuer URL from the CyberArk Identity WS-Fed configuration for EAC and OWA.
-
The Exact Resource application URL from the CyberArk Identity WS-Fed configuration for EAC and OWA.
-
The Thumbprint from certificate imported into the CyberArk Identity WS-Fed configuration. You can use the same certificate for both ECA and OWA.
First do the EAC:
Set-OrganizationConfig -AdfsIssuer ”<CyberArk Identity Issuer>” -AdfsAudienceUris "<EACURL>" -AdfsSignCertificateThumbprint "<Thumbprint>"
Next do OWA:
Set-OrganizationConfig -AdfsIssuer ”<CyberArk Identity Issuer>” -AdfsAudienceUris “<OWAURL>” -AdfsSignCertificateThumbprint "<Thumbprint>"
Configure Microsoft Exchange ECA to use WS-Fed for SSO
To configure all EAC and Outlook on the web virtual directories on every Exchange server in your organization, run the following commands:
Get-EcpVirtualDirectory | Set-EcpVirtualDirectory -AdfsAuthentication $true -BasicAuthentication $false -DigestAuthentication $false -FormsAuthentication $false -OAuthAuthentication $false -WindowsAuthentication $false
Configure Microsoft Exchange OWA to use WS-Fed for SSO
To configure all OWA and Outlook on the web virtual directories on every Exchange server in your organization, run the following commands:
Get-OwaVirtualDirectory | Set-OwaVirtualDirectory -AdfsAuthentication $true -BasicAuthentication $false -DigestAuthentication $false -FormsAuthentication $false -OAuthAuthentication $false -WindowsAuthentication $false