protected override void InternalBeginProcessing() { TaskLogger.LogEnter(); this.readOnlyRecipientSession = PermissionTaskHelper.GetReadOnlyRecipientSession(this.DomainController); if (this.readOnlyRecipientSession.UseGlobalCatalog) { this.globalCatalogRecipientSession = this.readOnlyRecipientSession; } else { this.globalCatalogRecipientSession = PermissionTaskHelper.GetReadOnlyRecipientSession(null); } this.readOnlyConfigurationSession = DirectorySessionFactory.Default.CreateTopologyConfigurationSession(this.DomainController, true, ConsistencyMode.PartiallyConsistent, ADSessionSettings.FromRootOrgScopeSet(), 207, "InternalBeginProcessing", "f:\\15.00.1497\\sources\\dev\\Management\\src\\Management\\RecipientTasks\\permission\\SetPermissionTaskBase.cs"); if (this.DomainController != null) { ADServer adserver = DirectoryUtilities.DomainControllerFromName(this.DomainController); if (adserver == null) { base.ThrowTerminatingError(new RecipientTaskException(Strings.DCWithGivenNameCouldNotBeFound(this.DomainController)), ErrorCategory.ObjectNotFound, null); } this.domainControllerDomainId = adserver.DomainId; } this.modifiedAcl.Clear(); this.modifiedObjects.Clear(); TaskLogger.LogExit(); }
protected override void InternalBeginProcessing() { TaskLogger.LogEnter(); base.InternalBeginProcessing(); this.readOnlyRecipientSession = PermissionTaskHelper.GetReadOnlyRecipientSession(this.DomainController); if (this.readOnlyRecipientSession.UseGlobalCatalog) { this.globalCatalogRecipientSession = this.readOnlyRecipientSession; } else { this.globalCatalogRecipientSession = PermissionTaskHelper.GetReadOnlyRecipientSession(null); } if (this.User != null) { this.securityPrincipal = SecurityPrincipalIdParameter.GetUserSid(this.GlobalCatalogRecipientSession, this.User, new Task.TaskErrorLoggingDelegate(base.ThrowTerminatingError), new Task.TaskVerboseLoggingDelegate(base.WriteVerbose)); } TaskLogger.LogExit(); }