protected override void InternalBeginProcessing() { TaskLogger.LogEnter(); if (this.Credential != null) { base.NetCredential = this.Credential.GetNetworkCredential(); } base.InternalBeginProcessing(); base.WriteVerbose(Strings.VerboseIgnoreDefaultScope); this.domainRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(base.DomainController, false, ConsistencyMode.PartiallyConsistent, base.NetCredential, base.OrgWideSessionSettings, 106, "InternalBeginProcessing", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\RecipientTasks\\recipient\\UpdateRecipient.cs"); this.domainRecipientSession.EnforceDefaultScope = false; ADSessionSettings sessionSettings = ADSessionSettings.FromRootOrgScopeSet(); if (!OrganizationId.ForestWideOrgId.Equals(base.OrgWideSessionSettings.CurrentOrganizationId)) { sessionSettings = ADSessionSettings.FromAccountPartitionRootOrgScopeSet(base.OrgWideSessionSettings.CurrentOrganizationId.PartitionId); } this.configurationSession = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(base.DomainController, true, ConsistencyMode.PartiallyConsistent, string.IsNullOrEmpty(base.DomainController) ? null : base.NetCredential, sessionSettings, 120, "InternalBeginProcessing", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\RecipientTasks\\recipient\\UpdateRecipient.cs"); this.localForestLinkResolutionServer = ADSession.GetCurrentConfigDC(base.OrgWideSessionSettings.GetAccountOrResourceForestFqdn()); string fqdn = NativeHelpers.CanonicalNameFromDistinguishedName(this.configurationSession.GetRootDomainNamingContextFromCurrentReadConnection()); if (ADForest.IsLocalForestFqdn(fqdn) || !OrganizationId.ForestWideOrgId.Equals(base.OrgWideSessionSettings.CurrentOrganizationId)) { this.domainRecipientSession.LinkResolutionServer = this.localForestLinkResolutionServer; } TaskLogger.LogExit(); }
internal static IRecipientSession GetWritableRecipientSession(Fqdn domainController) { IRecipientSession tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(domainController, false, ConsistencyMode.PartiallyConsistent, ADSessionSettings.FromRootOrgScopeSet(), 514, "GetWritableRecipientSession", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\Common\\recipient\\PermissionTaskHelper.cs"); tenantOrRootOrgRecipientSession.EnforceDefaultScope = false; tenantOrRootOrgRecipientSession.LinkResolutionServer = ADSession.GetCurrentConfigDC(tenantOrRootOrgRecipientSession.SessionSettings.GetAccountOrResourceForestFqdn()); return(tenantOrRootOrgRecipientSession); }
// Token: 0x0600048C RID: 1164 RVA: 0x000104A8 File Offset: 0x0000E6A8 protected override IConfigDataProvider CreateSession() { IRecipientSession tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(base.DomainController, false, ConsistencyMode.PartiallyConsistent, base.SessionSettings, 355, "CreateSession", "f:\\15.00.1497\\sources\\dev\\Configuration\\src\\ObjectModel\\BaseTasks\\NewAdObjectTask.cs"); tenantOrRootOrgRecipientSession.LinkResolutionServer = ADSession.GetCurrentConfigDC(base.SessionSettings.GetAccountOrResourceForestFqdn()); tenantOrRootOrgRecipientSession.UseGlobalCatalog = false; return(tenantOrRootOrgRecipientSession); }
protected override IConfigDataProvider CreateSession() { IRecipientSession tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(base.DomainController, false, ConsistencyMode.PartiallyConsistent, null, base.SessionSettings, ConfigScopes.TenantSubTree, 101, "CreateSession", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\Deployment\\InstallUserAccount.cs"); tenantOrRootOrgRecipientSession.LinkResolutionServer = ADSession.GetCurrentConfigDC(tenantOrRootOrgRecipientSession.SessionSettings.GetAccountOrResourceForestFqdn()); tenantOrRootOrgRecipientSession.UseGlobalCatalog = false; return(tenantOrRootOrgRecipientSession); }
protected override IConfigDataProvider CreateSession() { ADSessionSettings adsessionSettings = ADSessionSettings.FromOrganizationIdWithoutRbacScopes(base.RootOrgContainerId, base.CurrentOrganizationId, base.ExecutingUserOrganizationId, false); IRecipientSession tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(this.DomainController, false, ConsistencyMode.PartiallyConsistent, adsessionSettings, 82, "CreateSession", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\RecipientTasks\\MicrosoftExchangeRecipient\\RemoveMicrosoftExchangeRecipient.cs"); tenantOrRootOrgRecipientSession.LinkResolutionServer = ADSession.GetCurrentConfigDC(adsessionSettings.GetAccountOrResourceForestFqdn()); tenantOrRootOrgRecipientSession.UseGlobalCatalog = false; return(tenantOrRootOrgRecipientSession); }
protected override IConfigDataProvider CreateSession() { IRecipientSession tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(base.DomainController, false, ConsistencyMode.PartiallyConsistent, null, base.SessionSettings, 65, "CreateSession", "f:\\15.00.1497\\sources\\dev\\Configuration\\src\\ObjectModel\\BaseTasks\\ADObjectActionTask.cs"); if (this.InternalIgnoreDefaultScope) { tenantOrRootOrgRecipientSession.EnforceDefaultScope = false; } tenantOrRootOrgRecipientSession.LinkResolutionServer = ADSession.GetCurrentConfigDC(base.SessionSettings.GetAccountOrResourceForestFqdn()); return(tenantOrRootOrgRecipientSession); }
internal static IRecipientSession CreateRecipientSession(Fqdn domainController, ADSessionSettings sessionSettings) { IRecipientSession tenantOrRootOrgRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(domainController, true, ConsistencyMode.PartiallyConsistent, null, sessionSettings, ConfigScopes.TenantSubTree, 92, "CreateRecipientSession", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\Search\\Utils.cs"); if (VariantConfiguration.InvariantNoFlightingSnapshot.Global.MultiTenancy.Enabled) { tenantOrRootOrgRecipientSession.SessionSettings.IncludeInactiveMailbox = true; } tenantOrRootOrgRecipientSession.LinkResolutionServer = ADSession.GetCurrentConfigDC(tenantOrRootOrgRecipientSession.SessionSettings.GetAccountOrResourceForestFqdn()); tenantOrRootOrgRecipientSession.UseGlobalCatalog = true; return(tenantOrRootOrgRecipientSession); }
public AggregationSubscriptionDataProvider(AggregationTaskType taskType, IRecipientSession session, ADUser adUser) { session.LinkResolutionServer = ADSession.GetCurrentConfigDC(session.SessionSettings.GetAccountOrResourceForestFqdn()); session.UseGlobalCatalog = false; this.taskType = taskType; this.adUser = adUser; this.recipientSession = session; this.aggregationSubscriptionConstraintChecker = new AggregationSubscriptionConstraintChecker(); if (this.adUser != null) { try { this.primaryExchangePrincipal = ExchangePrincipal.FromADUser(this.recipientSession.SessionSettings, this.adUser, RemotingOptions.AllowCrossSite); } catch (ObjectNotFoundException innerException) { throw new MailboxFailureException(innerException); } } }