internal override void ProcessRedirectionEntry(IGlobalDirectorySession session) { if (this.accountPartitionId != null) { ADForest localForest = ADForest.GetLocalForest(); session.UpdateTenant(this.ExternalDirectoryOrganizationId, localForest.Fqdn, this.accountPartitionId.ForestFQDN, ManagementEndpointBase.GetSmtpNextHopDomain(), GlsTenantFlags.None, this.TenantContainerCN); return; } if (this.TenantFlag != null) { session.SetTenantFlag(this.ExternalDirectoryOrganizationId, this.TenantFlag.Value, true); return; } session.UpdateAcceptedDomain(this.ExternalDirectoryOrganizationId, this.DomainName.Domain); }
internal override void ProcessRedirectionEntry(IGlobalDirectorySession session) { if (this.accountPartitionId != null) { ADForest localForest = ADForest.GetLocalForest(); session.AddTenant(this.ExternalDirectoryOrganizationId, localForest.Fqdn, this.accountPartitionId.ForestFQDN, ManagementEndpointBase.GetSmtpNextHopDomain(), GlsTenantFlags.None, this.TenantContainerCN); if (this.PopulateCacheWithDomainName != null) { ADAccountPartitionLocator.AddTenantDataToCache(this.ExternalDirectoryOrganizationId, localForest.Fqdn, this.accountPartitionId.ForestFQDN, this.PopulateCacheWithDomainName.Domain, this.TenantContainerCN); return; } } else { session.AddAcceptedDomain(this.ExternalDirectoryOrganizationId, this.DomainName.Domain, this.InitialDomain); } }