SOLVED
Home

Azure Active Directory Seamless Single Sign-On

%3CLINGO-SUB%20id%3D%22lingo-sub-151642%22%20slang%3D%22en-US%22%3EAzure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151642%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20question%20around%26nbsp%3BAzure%20Active%20Directory%20Seamless%20Single%20Sign-On.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESo%20we%20want%20to%20use%20the%20Azure%20Seamless%20Single%20Sign-On%20but%20we%20have%20a%20forest%20and%20each%20business%20is%20in%20an%20organisation%20unit%20then%20each%20organisation%20unit%20is%20connected%20to%20their%20own%20office%20365%20tenant%20for%20each%20business%20via%20Azure%20AD%20Connect.%20Would%20we%20be%20able%20to%20use%26nbsp%3BAzure%20Active%20Directory%20Seamless%20Single%20Sign-On%20for%20all%20the%20businesses%20that%20have%20separate%20tenants%20%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20452px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F27893iCB3AE2B1027FCF7B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22e.png%22%20title%3D%22e.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-151642%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Active%20Directory%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-151816%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151816%22%20slang%3D%22en-US%22%3E%3CP%3Esorry...%20then%20I%20guess%20your%20only%20option%20is%20trying%20multiple%20federated%20tenants%2C%20but%20I'm%20not%20sure%20it's%20supported%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblog.kloud.com.au%2F2015%2F09%2F08%2Foffice-365-sso-configuring-multiple-office-365-tenants-to-use-a-single-ad-fs-instance%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.kloud.com.au%2F2015%2F09%2F08%2Foffice-365-sso-configuring-multiple-office-365-tenants-to-use-a-single-ad-fs-instance%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-151803%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151803%22%20slang%3D%22en-US%22%3ESadly%20not%20%3A(%3C%2Fimg%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-151799%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151799%22%20slang%3D%22en-US%22%3E%3CP%3EYou're%20right%2C%20so%20you%20had%20the%20answer.%3C%2FP%3E%0A%3CP%3EIs%20it%20not%20possible%20to%20unify%20tenants%20in%20one%20single%20tenant%20with%20multiple%20verified%20domains%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-151796%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151796%22%20slang%3D%22en-US%22%3EI%20thought%20that%20might%20be%20the%20case%20but%20I%20have%20also%20seen%20this%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-topologies%23multiple-forests-single-azure-ad-tenant%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-topologies%23multiple-forests-single-azure-ad-tenant%3C%2FA%3E%20%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20their%20says%3A%20The%20single%20sign-on%20(SSO)%20option%20for%20password%20synchronization%20and%20pass-through%20authentication%20can%20be%20used%20with%20only%20one%20Azure%20AD%20tenant.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20take%20this%20as%20it%20is%20not%20possible.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-151767%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-151767%22%20slang%3D%22en-US%22%3E%3CP%3EI%20don't%20see%20any%20limitation%20for%20your%20scenario%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-sso%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-sso%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EYou%20could%20face%20problems%20when%20you%20sync%2030%20or%20more%20AD%20forests%2C%20which%20is%20not%20your%20case%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-troubleshoot-sso%23known-problems%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-troubleshoot-sso%23known-problems%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EJust%20follow%20the%20procedure%20for%20each%20tenant%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-sso-quick-start%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fconnect%2Factive-directory-aadconnect-sso-quick-start%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-898488%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-898488%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F115110%22%20target%3D%22_blank%22%3E%40Will%20Mellor%3C%2FA%3E%2C%26nbsp%3Bthis%20is%20actually%20possible%2C%20but%20not%20supported%20due%20to%20how%20the%20Azure%20AD%20Connect%20works.%20Technically%2C%20SSO%20is%20using%20Kerberos.%20This%20means%20that%20both%20the%20%22server%22%20account%20in%20AD%20and%20the%20%22service%22%20(Azure%20AD)%20must%20share%20the%20secret%20(see%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Factive-directory%2Fhybrid%2Fhow-to-connect-sso-how-it-works%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Edoc%3C%2FA%3E).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20enabling%20SSO%2C%20Azure%20AD%20connect%20creates%20a%20computer%20account%20in%20AD%20(AZUREADSSOACC)%2C%20service%20principalname%20(%3CA%20href%3D%22https%3A%2F%2Fautologon.microsoftazuread-sso.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fautologon.microsoftazuread-sso.com%3C%2FA%3E)%2C%20and%20configures%20SSO%20in%20Azure%20AD.%20During%20this%20process%2C%20it%20creates%20a%20random%20password%20for%20AZUREADSSOACC%20and%20tells%20this%20to%20Azure%20AD.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20if%20you%20could%20set%20the%20password%20for%20each%20tenant%20to%20be%20the%20same%2C%20this%20would%20work.%20With%20Microsoft%20tools%2C%20this%20is%20not%20possible.%20However%2C%20this%20feature%20will%20be%20introduced%20in%20the%20next%20version%20of%20my%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fo365blog.com%2Faadinternals%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAADInternals%3C%2FA%3E%20PowerShell%20module%20after%20being%20presented%20and%20announced%20in%20%3CA%20href%3D%22https%3A%2F%2Ft2.fi%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ET2'19%20infosec%20conference%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-898712%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-898712%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5953%22%20target%3D%22_blank%22%3E%40Nestori%20Syynimaa%3C%2FA%3EThank%20you%20will%20keep%20a%20look%20out%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1186268%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1186268%22%20slang%3D%22en-US%22%3E%3CP%3EHere%20are%20the%20steps%20how%20to%20set%20the%20SSO%20password%20using%20%3CA%20href%3D%22http%3A%2F%2Fo365blog.com%2Faadinternals%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAADInternals%3C%2FA%3E%20toolkit.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%20step%20is%20to%20install%20and%20import%20the%20AADInternals%20PowerShell%20Module.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3EInstall-Module%20AADInternals%0AImport-Module%20AADInternals%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BAfter%20successful%20import%2C%20the%20text%20%22%3CFONT%3EAADInternals%20v0.2.8%20by%20%40NestoriSyynimaa%3C%2FFONT%3E%22%20should%20appear.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENext%20step%20is%20to%20acquire%20an%20OAuth%20access%20token%20for%20pass-through%20authentication%20(PTA)%20which%20is%20using%20same%20tokens%20than%20DesktopSSO%20(%3Dinternal%20technical%20name%20for%20Seamless%20SSO).%20The%20following%20command%20prompts%20for%20credentials%20(must%20be%20Global%20Admin)%20and%20stores%20it%20to%20a%20variable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3E%24pt%3DGet-AADIntAccessTokenForPTA%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%2C%20assuming%20that%20the%20Seamless%20SSO%20is%20enabled%2C%20you%20can%20list%20the%20current%20settings%20using%20the%20following%20command.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3EGet-AADIntDesktopSSO%20-AccessToken%20%24pt%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20output%20should%20be%20similar%20to%20below%2C%20depending%20on%20how%20many%20domains%20is%20registered.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3EDomains%20%20%20%20%20%20%3A%20company.com%0AEnabled%20%20%20%20%20%20%3A%20True%0AErrorMessage%20%3A%20%0AExists%20%20%20%20%20%20%20%3A%20True%0AIsSuccessful%20%3A%20True%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BNow%2C%20the%20password%20for%20a%20specific%20domain%20can%20be%20set%20using%20the%20following%20command%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3ESet-AADIntDesktopSSO%20-AccessToken%20%24pt%20-DomainName%20%22company.com%22%20-Password%20%22MyVerySecretPassword%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20the%20password%20must%20be%20same%20in%20cloud%20and%20on-prem%2C%20the%20command%20prompts%20whether%20the%20on-prem%20computer%20account%20should%20also%20be%20set.%20If%20you%20answer%20%22yes%22%20the%20command%20tries%20to%20set%20password%20using%20following%20commands.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3E%24computer%20%3D%20Get-ADComputer%20%22AZUREADSSOACC%22%0ASet-ADAccountPassword%20-Identity%20%24computer.DistinguishedName%20-NewPassword%20(ConvertTo-SecureString%20-AsPlainText%20%22MyVerySecretPassword%22%20-Force)%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20you%20do%20not%20have%20required%20rights%20to%20on-prem%20AD%20or%20Set-ADAccountPassword%20cmdlet%20is%20not%20available%2C%20you%20should%20answer%20%22no%22%20and%20do%20it%20manually.%20Also%2C%20the%20Kerberos%20Key%20Distribution%20Center%26nbsp%3B%3C%2FSPAN%3E%3CU%3Emust%3C%2FU%3E%3CSPAN%3E%20be%20restarted%20in%20Domain%20Controller%20for%20the%20changes%20to%20take%20effect.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20the%20password%20for%20cloud%20is%20successfully%20set%20you%20should%20get%20the%20following%20output%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3EIsSuccessful%20ErrorMessage%0A------------%20------------%0A%20%20%20%20True%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20case%20of%20multiple%20tenants%2C%20the%20password%20needs%20to%20be%20set%20to%20each%20tenant%20for%20the%20specific%20domains%20the%20tenant%20is%20using.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20everyone%20should%20be%20aware%20that%20if%20the%20password%20(i.e.%20%22MyVerySecretPassword%22)%20is%20known%2C%20you%20can%20login%20as%20any%20user%20of%20the%20tenant%20using%20user's%20sid%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3E%23%20Generate%20kerberos%20ticket%0A%24kt%3DNew-AADIntKerberosTicket%20-SidString%20%22S-1-5-xx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxx%22%20-Password%20%22MyVerySecretPassword%22%0A%0A%23%20Get%20access%20token%20using%20the%20ticket%2C%20for%20example%20to%20Exchange%20Online%0A%24at%3DGet-AADIntAccessTokenForEXO%20-KerberosTicket%20%24kt%20-Domain%20%22company.com%22%0A%0A%23%20Send%20an%20email%20message%0ASend-AADIntOutlookMessage%20-AccessToken%20%24at%20-Recipient%20%22someone%40company.com%22%20-Subject%20%22Message%22%20-Message%20%22%3CH1%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%20id%3D%22toc-hId-1960290560%22%3EMessage%3C%2FH1%3E%22%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3BLuckily%2C%20you%20cannot%20bypass%20MFA%20using%20this%20technique.%20More%20info%20at%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fo365blog.com%2Fpost%2Fkerberos%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fo365blog.com%2Fpost%2Fkerberos%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1206121%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1206121%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F97200%22%20target%3D%22_blank%22%3E%40Harold%20Baele%3C%2FA%3E%26nbsp%3BTheir%20is%20no%20reply%20from%20Microsoft's%20Azure%20Team%20on%20this%20at%20all.%20They%20have%20no%20said%20anything%20on%20this%20style%20of%20AD%20setup%20for%20Seamless%20Single%20Sign-On.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20is%20really%20frustrating%20and%20disappointing%20that%20Microsoft%20has%20not%20sorted%20this%2C%20I%20want%20to%20remove%20us%20from%20a%203rd%20Party%20Identity%20provider%20and%20move%20into%20Azure%20to%20provide%20Identity%20as%20our%26nbsp%3B3rd%20Party%20lacks%20features.%20But%20we%20cannot%20move%20as%20we%20have%20a%20requirement%20for%20Seamless%20Single%20Sign-On%20which%20is%20not%20possible%20with%20this%20style%20of%20AD.%20We%20would%20also%20buy%20Azure%20premium%20licensing%20if%20Microsoft%20can%20make%20this%26nbsp%3BSeamless%20Single%20Sign-On%20in%20this%20AD%20style.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1206092%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20Active%20Directory%20Seamless%20Single%20Sign-On%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1206092%22%20slang%3D%22en-US%22%3E%3CP%3EAnyone%20allready%20implemented%20this%20somewhere%3F%20Is%20there%20any%20statement%20from%20Microsoft%20allowing%20this%20in%20a%20production%20environment%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F5953%22%20target%3D%22_blank%22%3E%40Nestori%20Syynimaa%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have a question around Azure Active Directory Seamless Single Sign-On.

 

So we want to use the Azure Seamless Single Sign-On but we have a forest and each business is in an organisation unit then each organisation unit is connected to their own office 365 tenant for each business via Azure AD Connect. Would we be able to use Azure Active Directory Seamless Single Sign-On for all the businesses that have separate tenants ?

 

e.png

13 Replies
Highlighted
Highlighted
I thought that might be the case but I have also seen this: https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnect-topologi...

In their says: The single sign-on (SSO) option for password synchronization and pass-through authentication can be used with only one Azure AD tenant.

I would take this as it is not possible.
Highlighted

You're right, so you had the answer.

Is it not possible to unify tenants in one single tenant with multiple verified domains?

Highlighted
Sadly not :(
Highlighted
Solution

sorry... then I guess your only option is trying multiple federated tenants, but I'm not sure it's supported

https://blog.kloud.com.au/2015/09/08/office-365-sso-configuring-multiple-office-365-tenants-to-use-a...

Highlighted

@Will Mellor, this is actually possible, but not supported due to how the Azure AD Connect works. Technically, SSO is using Kerberos. This means that both the "server" account in AD and the "service" (Azure AD) must share the secret (see this doc). 

 

When enabling SSO, Azure AD connect creates a computer account in AD (AZUREADSSOACC), service principalname (https://autologon.microsoftazuread-sso.com), and configures SSO in Azure AD. During this process, it creates a random password for AZUREADSSOACC and tells this to Azure AD.

 

So, if you could set the password for each tenant to be the same, this would work. With Microsoft tools, this is not possible. However, this feature will be introduced in the next version of my AADInternals PowerShell module after being presented and announced in T2'19 infosec conference.

Highlighted

@Nestori SyynimaaThank you will keep a look out :smile:

Highlighted

Here are the steps how to set the SSO password using AADInternals toolkit.

 

First step is to install and import the AADInternals PowerShell Module.

 

 

Install-Module AADInternals
Import-Module AADInternals

 

 

 After successful import, the text "AADInternals v0.2.8 by @NestoriSyynimaa" should appear.

 

Next step is to acquire an OAuth access token for pass-through authentication (PTA) which is using same tokens than DesktopSSO (=internal technical name for Seamless SSO). The following command prompts for credentials (must be Global Admin) and stores it to a variable.

 

 

$pt=Get-AADIntAccessTokenForPTA

 

 

 

Now, assuming that the Seamless SSO is enabled, you can list the current settings using the following command.

 

 

Get-AADIntDesktopSSO -AccessToken $pt

 

 

The output should be similar to below, depending on how many domains is registered.

 

 

Domains      : company.com
Enabled      : True
ErrorMessage : 
Exists       : True
IsSuccessful : True

 

 

 

 Now, the password for a specific domain can be set using the following command

 

 

Set-AADIntDesktopSSO -AccessToken $pt -DomainName "company.com" -Password "MyVerySecretPassword"

 

 

As the password must be same in cloud and on-prem, the command prompts whether the on-prem computer account should also be set. If you answer "yes" the command tries to set password using following commands. 

 

 

$computer = Get-ADComputer "AZUREADSSOACC"
Set-ADAccountPassword -Identity $computer.DistinguishedName -NewPassword (ConvertTo-SecureString -AsPlainText "MyVerySecretPassword" -Force)

 

 

If you do not have required rights to on-prem AD or Set-ADAccountPassword cmdlet is not available, you should answer "no" and do it manually. Also, the Kerberos Key Distribution Center must be restarted in Domain Controller for the changes to take effect.

 

After the password for cloud is successfully set you should get the following output:

 

 

IsSuccessful ErrorMessage
------------ ------------
    True             

 

 

 

In the case of multiple tenants, the password needs to be set to each tenant for the specific domains the tenant is using.

 

However, everyone should be aware that if the password (i.e. "MyVerySecretPassword") is known, you can login as any user of the tenant using user's sid:

 

 

# Generate kerberos ticket
$kt=New-AADIntKerberosTicket -SidString "S-1-5-xx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-xxx" -Password "MyVerySecretPassword"

# Get access token using the ticket, for example to Exchange Online
$at=Get-AADIntAccessTokenForEXO -KerberosTicket $kt -Domain "company.com"

# Send an email message
Send-AADIntOutlookMessage -AccessToken $at -Recipient "someone@company.com" -Subject "Message" -Message "<h1>Message</h1>"

 

 

 Luckily, you cannot bypass MFA using this technique. More info at http://o365blog.com/post/kerberos/

Highlighted

Anyone allready implemented this somewhere? Is there any statement from Microsoft allowing this in a production environment? @Nestori Syynimaa 

Highlighted

@Harold Baele Their is no reply from Microsoft's Azure Team on this at all. They have not said anything on this style of AD setup for Seamless Single Sign-On.

 

It is really frustrating and disappointing that Microsoft has not sorted this, I want to remove us from a 3rd Party Identity provider and move into Azure to provide Identity as our 3rd Party lacks features. But we cannot move as we have a requirement for Seamless Single Sign-On which is not possible with this style of AD. We would also buy Azure premium licensing if Microsoft can make this Seamless Single Sign-On in this AD style.

Highlighted

Sure this is frustrating. Also because having separation within a single tenant with this like Administrative Units is also still in preview - and currently nowhere near the answser... @Will Mellor 

Highlighted
No, not that I know :(
Highlighted

This is fantastic @Nestori Syynimaa. I have a few questions regarding this:

1. Microsoft recommends cycling the Kerberos decryption key every 30 days using the Update-AzureADSSOForest command, where does this solution fit into that?

2. Do we complete the cycling task for each Office 365 tenant or can we not do it because it will break something?

3. I haven't been able to confirm, is the Kerberos decryption key the same as the computer account password?

4. Should we be regularly changing the computer account password using your solution?

5. When installing AD Connect for additional tenants, I assume we don't need to tick the Enable single sign-on tickbox in the install wizard so that it doesn't fail to create the computer account later in the process? Or do we need to delete the computer account and have it recreate when configuring for each tenant then use your process to set the password up for all tenants again?