Home

EWS integration from SfB client to Exchange during a cross forest migration

%3CLINGO-SUB%20id%3D%22lingo-sub-1098252%22%20slang%3D%22en-US%22%3EEWS%20integration%20from%20SfB%20client%20to%20Exchange%20during%20a%20cross%20forest%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098252%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--1436543342%22%20id%3D%22toc-hId--1436543342%22%3ESummary%3C%2FH2%3E%3CP%3EDuring%20a%20cross%20forest%20migration%2C%20a%20single%20forest%20(source%20forest)%20is%20moved%20to%20a%20new%20single%20forest%20(target%20forest).%20The%20users%20and%20services%20(AD%2C%20Exchange%2C%20Skype%20for%20Business%20and%20SharePoint)%20are%20moved%20in%20different%20phases%20from%20the%20source%20forest%20to%20the%20target%20forest.%20The%20new%20services%20such%20as%20Exchange%20and%20SfB%20are%20already%20implemented%20in%20the%20target%20forest%20and%20can%20already%20be%20used%20for%20tests%20(function%2C%20migration).%20The%20existing%20SIP%2FE-Mail%20domain%20will%20be%20reused%20in%20the%20new%20environment.%20So%20the%20SfB%20migration%20cannot%20be%20done%20in%20phases%20but%20must%20be%20done%20in%20one%20step%20(%22Big%20Bang%22).%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1050969491%22%20id%3D%22toc-hId-1050969491%22%3EChallenge%3C%2FH2%3E%3CP%3EEWS%20is%20used%20for%20the%20client-side%20integration%20of%20the%20SfB%20client%20into%20the%20Exchange%20mailbox.%20A%20functioning%20autodiscover%20is%20required%20for%20this.%20The%20SfB%20client%20only%20uses%20the%20autodiscover%20via%20DNS.%20This%20is%20only%20one%20mechanism%20of%20the%20available%20Autodiscover%20mechanisms%20that%20Outlook%20can%20use.%20This%20integration%20via%20EWS%20should%20ideally%20be%20maintained%20at%20any%20time%20during%20the%20migration.%3C%2FP%3E%3CP%3ESince%20the%20Exchange%20mailboxes%20are%20phase-wise%20converted%2C%20the%20situation%20arises%20that%20the%20DNS%20entry%20(autodisocover.domain.de)%20does%20not%20always%20point%20to%20the%20correct%20mailbox.%20This%20means%20that%20if%20the%20user's%20mailbox%20is%20switched%20to%20the%20new%20environment%20and%20the%20Autodiscover%20DNS%20entry%20still%20points%20to%20the%20old%20environment%2C%20the%20Skype%20Client%20will%20also%20connect%20to%20the%20old%20mailbox.%20So%20a%20data%20loss%20of%20the%20Conversation%20History%20is%20pre-programmed%20with%20the%20later%20conversion%20of%20the%20Autodiscover%20entry.%3C%2FP%3E%3CH2%20id%3D%22toc-hId--756484972%22%20id%3D%22toc-hId--756484972%22%3EConsiderations%3C%2FH2%3E%3CP%3EWith%20the%20Exchange%20migration%20the%20TargetAddress%20(AD%20attribute)%20with%20reference%20to%20the%20old%20Exchange%20mailbox%20(source%20forest)%20is%20set%20in%20the%20target%20forest%20before%20the%20mailbox%20migration.%20The%20TargetAddress%20can%20be%20understood%20as%20a%20forwarding%20mechanism.%20If%20the%20mailbox%20migration%20is%20successful%20and%20the%20CutOver%20is%20completed%2C%20the%20forwarding%20is%20removed%20from%20the%20target%20mailbox%20and%20is%20added%20to%20the%20source%20mailbox%20with%20a%20reference%20to%20the%20target%20mailbox.%3C%2FP%3E%3CP%3EThe%20assumption%20would%20be%20that%20the%20SfB%20client%20also%20makes%20an%20autodiscover%20request%20for%20the%20TargetAddress%20domain.%20This%20functionality%20seems%20to%20exist%20in%20the%20Outlook%20client.%20The%20advantage%20would%20be%20that%20we%20don't%20have%20to%20cut-over%20the%20Autodiscover%20centrally%20for%20everyone%20and%20the%20integration%20between%20Exchange%20and%20Skype%20remains%20intact%20for%20the%20whole%20migration.%20%3CSTRONG%3EBut%20we%20don%E2%80%99t%20see%20any%20behavior%20in%20the%20client%20that%20indicates%20that%20the%20SfB%20client%20honors%20the%20TargetAddress%20and%20performs%20an%20Autodiscover%20on%20the%20TargetAddress%20domain.%20%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3BSource%3A%20%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fmhass%2F2010%2F06%2F16%2Fautodiscover-using-targetaddress%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fmhass%2F2010%2F06%2F16%2Fautodiscover-using-targetaddress%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20traced%20a%20SfB%20client%20login%20with%20Charles%20for%20a%20user%20where%20the%20mailbox%20was%20already%20moved.%20But%20I%20see%20just%20messages%20via%20EWS%20that%20indicate%20a%20quite%20normal%20connection%20to%20the%20old%20mailbox.%20I%20would%20expect%20some%20redirect%20%2F%20302%20messages%20that%20redirect%20to%20the%20target%20forest.%20I%20read%20that%20this%20mechanism%20is%20also%20used%20in%20exchange%20hybrid%20scenarios%20where%20the%20mailbox%20is%20hosted%20in%20O365.%3C%2FP%3E%3CP%3EWe%20already%20opened%20a%20premier%20case%20but%20this%20was%20not%20very%20helpful%20until%20now.%20So%20the%20idea%20was%20if%20somebody%20from%20the%20community%20could%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1098252%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ecross%20forest%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESfB%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESkype%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Paul Lange
Contributor

Summary

During a cross forest migration, a single forest (source forest) is moved to a new single forest (target forest). The users and services (AD, Exchange, Skype for Business and SharePoint) are moved in different phases from the source forest to the target forest. The new services such as Exchange and SfB are already implemented in the target forest and can already be used for tests (function, migration). The existing SIP/E-Mail domain will be reused in the new environment. So the SfB migration cannot be done in phases but must be done in one step ("Big Bang").  

Challenge

EWS is used for the client-side integration of the SfB client into the Exchange mailbox. A functioning autodiscover is required for this. The SfB client only uses the autodiscover via DNS. This is only one mechanism of the available Autodiscover mechanisms that Outlook can use. This integration via EWS should ideally be maintained at any time during the migration.

Since the Exchange mailboxes are phase-wise converted, the situation arises that the DNS entry (autodisocover.domain.de) does not always point to the correct mailbox. This means that if the user's mailbox is switched to the new environment and the Autodiscover DNS entry still points to the old environment, the Skype Client will also connect to the old mailbox. So a data loss of the Conversation History is pre-programmed with the later conversion of the Autodiscover entry.

Considerations

With the Exchange migration the TargetAddress (AD attribute) with reference to the old Exchange mailbox (source forest) is set in the target forest before the mailbox migration. The TargetAddress can be understood as a forwarding mechanism. If the mailbox migration is successful and the CutOver is completed, the forwarding is removed from the target mailbox and is added to the source mailbox with a reference to the target mailbox.

The assumption would be that the SfB client also makes an autodiscover request for the TargetAddress domain. This functionality seems to exist in the Outlook client. The advantage would be that we don't have to cut-over the Autodiscover centrally for everyone and the integration between Exchange and Skype remains intact for the whole migration. But we don’t see any behavior in the client that indicates that the SfB client honors the TargetAddress and performs an Autodiscover on the TargetAddress domain.

 Source: https://blogs.technet.microsoft.com/mhass/2010/06/16/autodiscover-using-targetaddress

I traced a SfB client login with Charles for a user where the mailbox was already moved. But I see just messages via EWS that indicate a quite normal connection to the old mailbox. I would expect some redirect / 302 messages that redirect to the target forest. I read that this mechanism is also used in exchange hybrid scenarios where the mailbox is hosted in O365.

We already opened a premier case but this was not very helpful until now. So the idea was if somebody from the community could help.

 

Regards,

 

Paul

Related Conversations