Configure Office 365 Federation
This multi-step procedure shows an Office 365 Tenant Administrator how to:
Note: This step requires the following information:
Verify that your root domain ([domain]) is not the default domain for Office 365.
Follow these steps:
Register the domain with Office 365.
Follow these steps:
Change the domain authentication method.
Follow these steps:
# Set-MsolDomainFederationSettings.ps1
# Note: Unsigned scripts must be permitted with powershell command:
# Set-ExecutionPolicy RemoteSigned
# The name of the root domain configured and confirmed in Office 365
$DN = "[domain]"
# The base URL of the Federation installation
$BURL = "[baseUrl]"
# Your Signing Certificate, excluding "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----"
$Cert = "[certificate]"
# The Federation Partnership Name
$PN = "[partnershipId]"
# The Federation Disambiguation ID
$DID = "[disambiguationId]"
# The Local Identity Provider Entity ID
$IUri = "[entityIdLocal]"
### End of Configuration
# Passive Requester Service URL
$PUri = "$BURL/affwebservices/public/wsfeddispatcher/$DID"
# Active Requester Service URL
$AUri = "$BURL/$PN/ws-username"
# Sign-Out URL
$LUri = "$BURL/affwebservices/public/wsfeddispatcher/$DID"
# Metadata Exchange URL
$MUri = "$BURL/$PN/mex"
Write-Host "Enter your Office 365 Administrator credentials"
Connect-MsolService
# Change the authentication method and set the parameters
Set-MsolDomainAuthentication -Authentication federated -DomainName $DN -ActiveLogOnUri $AUri -IssuerUri $IUri -LogOffUri $LUri -MetadataExchangeUri $MUri -PassiveLogOnUri $PUri -SigningCertificate $Cert
# Set the parameters in case we are updating
Set-MsolDomainFederationSettings -DomainName $DN -ActiveLogOnUri $AUri -IssuerUri $IUri -LogOffUri $LUri -MetadataExchangeUri $MUri -PassiveLogOnUri $PUri -SigningCertificate $Cert
# Verify the federation settings
Get-MsolDomainFederationSettings -DomainName $DN
# Verify the federation settings by comparing to the user entered data
# this particularly ensures that the certificate was uploaded correctly
$existing = Get-MsolDomainFederationSettings -DomainName $DN
if ($existing.ActiveLogOnUri -ne $AUri -or
$existing.IssuerUri -ne $IUri -or
$existing.LogOffUri -ne $LUri -or
$existing.MetadataExchangeUri -ne $MUri -or
$existing.PassiveLogOnUri -ne $PUri -or
$existing.SigningCertificate -ne $Cert) {
Write-Output "Please verify your settings. At least one setting was not properly uploaded."
}
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|