Ensure that SAML 2.0 is enabled in Access Manager.
In the Administration Console, click Devices> Identity Servers > Edit.
In the Enabled Protocols section, verify whether SAML 2.0 is selected.
Ensure that the following requirements are met before configuring an Office 365 domain:
Sign up for an Office 365 account. For information about signing up, see Sign in to Office 365.
To single-sign on to any of the Office 365 applications, ensure that you download it from the Office 365 portal.
Create a federated domain in Office 365 and prove ownership of it. By doing this you add your company domain into the Office 365 domain. For more information, see Adding and Verifying a Domain for Office 365.
Ensure that the Windows 7 or Windows 8 workstations do not have the Active Directory Federation Service 2.0 snap-in installed.
Ensure that the SSL certificate is issued by a well-known external certification authority (CA).
If you are using Microsoft Lync and/or Microsoft Outlook thick clients with WS-Trust, replace the default self-signed SSL server certificate included with Access Manager with one that is signed by a public Certificate Authority (CA). This enables Office 365 to establish a trusted SSL session with Access Manager. For more information see, Managing Trusted Roots and Trust Stores.
Install Microsoft Live Sign-in Module to help manage and establish a remote session with the Office 365 account that is created to manage the Office 365 domain. To download, go to Microsoft Downloads Center.
Install Microsoft Azure Active Directory Module. To download, go to Manage Azure AD using Windows PowerShell.
Office 365 is preconfigured to establish federation with an external service providers.
Perform the following steps to create a trusted service provider:
In the Administration Console, click Devices> Identity Servers > Edit.
Click SAML 2.0 > New >Service Provider.
Select Provider Type as Office 365. Ensure that Source is selected as the Metadata Text.
Specify a name for the Office 365 domain. The XML metadata is automatically populated in the Text field. Click Next.
Confirm the certificates and click Finish to save the changes.
You can configure Office 365 domains federations by using the Microsoft Online Services Module. You can use the Microsoft Online Services Module to run a series of cmdlets in the Windows PowerShell command-line interface to add or convert domains for single sign-on.
Each Active Directory domain that you want to federate by using Access Manager must either be added as a single sign-on domain or converted to be a single sign-on domain from a standard domain. Adding or converting a domain sets up a trust between Access Manager and Office 365.
Adding a Domain:
To add a domain to Office 365, perform the following steps:
Log in to Office 365 as an administrator.
On the Administrator page, click Management > Domains > Add a domain.
Specify the domain name that you want to add.
Verify the domain name.
For more information about how to verify a domain, see Verify your domain and change name servers.
Select appropriate services.
Configure the DNS records on the domain registrar for other services.
NOTE:Do not configure the new domain to the primary domain. Using the SetMsolDomainAuthentication command to set the domain as a federated domain results in an error if the domain is the default domain.
For more information, see Add a domain to Office 365.
Converting a standard domain to a federated domain: To convert a standard domain to a federated domain, perform the following steps:
Open the Microsoft Online Services Module from the Start menu.
Run $cred=Get-Credential. Enter your cloud service administrator account credentials.
Run Connect-MsolService –Credential $cred.
This cmdlet connects you to the cloud service. Creating a context that connects you to the cloud service is required before running any of the additional cmdlets installed by the tool.
For example, if the name of the domain you are converting to a single sign-on domain is namtest.com, and the base URL of the Identity Server is https://namtest.com:8443/nidp, execute the following commands at the Powershell prompt:
$dom = "namtest.com"
$url = "https://namtest.com:8443/nidp/saml2/sso"
$ecpUrl = "https://namtest.com:8443/nidp/saml2/soap"
$uri = "https://namtest.com:8443/nidp/saml2/metadata"
$logouturl = "/nidp/jsp/o365Logout.jsp"
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("name and path of the certificate")
NOTE:While executing this command, ensure that you specify the path to the certificate within the double quotes. For example: “C:\local\netiq-off365-sign.cer”
$certData = [system.convert]::tobase64string($cert.rawdata)
Use the following cmdlet to update the settings of the single sign-on domain:
Set-MsolDomainAuthentication -FederationBrandName $dom -Authentication Federated -PassiveLogOnUri $url -SigningCertificate $certData -IssuerUri $uri -ActiveLogOnUri $ecpUrl -LogOffUri $logouturl -PreferredAuthenticationProtocol SAMLP
NOTE:Ensure that there are no spaces after the hyphen if you are copy pasting the command.
You can configure your desktop email client to access Office 365 emails. The email clients must use a basic authentication and a supported exchange access method such as IMAP, POP, Active Sync, and MAPI.
The following are the list of email clients supported for this configuration:
Microsoft Outlook 2007
Microsoft Outlook 2010
Thunderbird 8 and 9
The iPhone (various iOS versions)
Windows Phone 7
NOTE:You can download the email clients from the download section of Office 365.
These steps are explained with an example where the federated domain name is namtest.com and the base URL is https://namtest.com:8443/nidp. Replace the domain name and base URL based on your system configuration.
Open the Microsoft Online Services Module.
Run the following command:
Specify your cloud service administrator account credentials.
Run the following command:
Connect-MsolService –Credential $cred
This cmdlet connects you to the cloud service.
Execute the following command to check the existing domain federation settings:
Get-MsolDomainFederationSettings -DomainName namtest.com
Substitute namtest.com with your domain name before executing this command.
In the output, look for the ActiveLogOnUri parameter.
For the Identity Server base URL https://namtest.com:8443/nidp, the value of the ActiveLogOnUri should be https://namtest.com:8443/nidp/saml2/soap. The ActiveLogOnUri is dependent on the base URL of the Identity Server.
If the value of ActiveLogOnUri in the command output is https://namtest.com:8443/nidp/saml2/soap, go to Step 5 without modifying the configuration.
(Conditional) If the ActiveLogOnUri is not https://namtest.com:8443/nidp/saml2/soap, execute the following command. Substitute namtest.com and port 8443 with your domain name and port number respectively before executing the following command.
Set-MsolDomainFederationSettings -DomainName namtest.com -ActiveLogOnUri "https://namtest.com:8443/nidp/saml2/soap" -preferredauthenticationprotocol SAMLP
Create a new email account in your email client and enter your Office 365 email ID.
NOTE:Configure Outlook related DNS settings before using email clients. You can configure these settings after adding the domain on the Office 365 port page.
The system prompts for specifying the basic authentication. Specify Access Manager credentials.
The email account is created after successful authentication.
NOTE:While logging in to the new email account, enter Access Manager credentials.
You need at least one user in Office 365 to verify that single sign-on is set up. If you have an existing user, ensure that the Immutable ID matches with the GUID of the Access Manager user.
You need at least one user in Office 365 to verify that single sign-on is set up. If you have an existing user, ensure that the Immutable ID matches the GUID of the Access Manager user.
For instance, if your user store is eDirectory and you want to retrieve the GUID of an existing Access Manager user, execute the following command on the eDirectory server terminal:
ldapsearch -D cn=<context> -w <password> -b <search base> cn=<name of the user> GUID | grep GUID
Create an Office 365 user with this GUID as the Immutable ID using the following command in Powershell:
new-msolUser -userprincipalName "user1@domain name" -immutableID "GUID of user1" - lastname "lastname of user 1" -firstname user1 -DisplayName "user1 users" -BlockCredential $false -"LicenseAssignment testdomain:ENTERPRISEPACK" -usageLocation "two letter country code[example: US,IN,DE,BE,GB etc]" -Password "password of the user".
If you want to use any other attribute as the ImmutableID of the Office 365 user, configure and then add a property name/value pair.
In the Administration Console, go to Identity Server and select an Identity Server.
Select SAML 2.0 and then select the service provider you created.
Select Options and click New.
Add a property name/value pair as follows:
Property Name: SAML2_OFFICE365_NAMEID_ATTRIBUTE_NAME
Property Value: title
The title you specify in the Property Value should be base64 encoded and stored in the user store. This value should be used as ImmutableID while creating a user in Office 365.
Verifying Single Sign-on:
To verify that single sign-on is set up correctly, perform the following procedure in a server that is not added to the domain:
Go to Microsoft Online Services.
Log in with your corporate credentials. (For example : firstname.lastname@example.org)
If single sign-on is enabled, the password field is dimmed. You will instead see the following message: You are now required to sign in at <your company>.
Select the Sign in at your company link.
If you are able to sign in without errors, single sign-on is set up successfully.