protected override IConfigDataProvider CreateSession()
        {
            PartitionId       partitionId     = (this.Identity.InternalADObjectId != null) ? this.Identity.InternalADObjectId.GetPartitionId() : PartitionId.LocalForest;
            ADSessionSettings sessionSettings = ADSessionSettings.FromAccountPartitionWideScopeSet(partitionId);

            return(DirectorySessionFactory.Default.CreateTopologyConfigurationSession((base.ServerSettings == null) ? null : base.ServerSettings.PreferredGlobalCatalog(partitionId.ForestFQDN), false, ConsistencyMode.PartiallyConsistent, sessionSettings, 49, "CreateSession", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\DirectorySetup\\UninstallContainerTask.cs"));
        }
Ejemplo n.º 2
0
        private TenantRelocationSyncObject[] ReadAllTeantObjectsInPage(int sizeLimit)
        {
            ADSessionSettings adsessionSettings = ADSessionSettings.FromAccountPartitionWideScopeSet(base.RecipientSession.SessionSettings.PartitionId);

            adsessionSettings.IncludeSoftDeletedObjectLinks = true;
            adsessionSettings.IncludeSoftDeletedObjects     = true;
            ITopologyConfigurationSession topologyConfigurationSession = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(true, ConsistencyMode.PartiallyConsistent, adsessionSettings, 375, "ReadAllTeantObjectsInPage", "f:\\15.00.1497\\sources\\dev\\data\\src\\directory\\Sync\\TenantRelocationSync\\TenantRelocationSyncConfiguration.cs");

            topologyConfigurationSession.DomainController          = base.TenantConfigurationSession.DomainController;
            topologyConfigurationSession.LogSizeLimitExceededEvent = false;
            topologyConfigurationSession.UseGlobalCatalog          = false;
            topologyConfigurationSession.UseConfigNC = false;
            TenantRelocationPagedReader tenantRelocationPagedReader = new TenantRelocationPagedReader(topologyConfigurationSession, base.TenantConfigurationSession.SessionSettings.CurrentOrganizationId.OrganizationalUnit, sizeLimit, TenantRelocationSyncConfiguration.BaseProperties, this.PageToken.PreSyncLdapPagingCookie);

            TenantRelocationSyncObject[] nextResultPage = tenantRelocationPagedReader.GetNextResultPage();
            this.SetPreSyncLdapPagingCookie(tenantRelocationPagedReader);
            return(nextResultPage);
        }
Ejemplo n.º 3
0
 private void PrepareSessionsForRootOrg()
 {
     this.recipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(false, ConsistencyMode.PartiallyConsistent, ADSessionSettings.FromRootOrgScopeSet(), 435, "PrepareSessionsForRootOrg", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\DirectorySetup\\SetupTaskBase.cs");
     this.recipientSession.UseGlobalCatalog = false;
     this.configurationSession                   = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(false, ConsistencyMode.PartiallyConsistent, ADSessionSettings.FromRootOrgScopeSet(), 443, "PrepareSessionsForRootOrg", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\DirectorySetup\\SetupTaskBase.cs");
     this.domainConfigurationSession             = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(false, ConsistencyMode.PartiallyConsistent, ADSessionSettings.FromRootOrgScopeSet(), 448, "PrepareSessionsForRootOrg", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\DirectorySetup\\SetupTaskBase.cs");
     this.domainConfigurationSession.UseConfigNC = false;
     this.ReadRootDomainFromDc(OrganizationId.ForestWideOrgId);
     this.rootDomainRecipientSession = DirectorySessionFactory.Default.GetTenantOrRootOrgRecipientSession(this.rootDomain.OriginatingServer, false, ConsistencyMode.PartiallyConsistent, ADSessionSettings.FromAccountPartitionWideScopeSet(this.recipientSession.SessionSettings.PartitionId), 458, "PrepareSessionsForRootOrg", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\DirectorySetup\\SetupTaskBase.cs");
 }