Ejemplo n.º 1
0
 public SecurityDescriptorAuthorizationService(IDirectory directory, ILogger <SecurityDescriptorAuthorizationService> logger, IJitAccessGroupResolver jitResolver, IAuthorizationInformationBuilder authzBuilder)
 {
     this.directory    = directory;
     this.logger       = logger;
     this.jitResolver  = jitResolver;
     this.authzBuilder = authzBuilder;
 }
Ejemplo n.º 2
0
 public JitAgent(ILogger <JitAgent> logger, IDirectory directory, IJitSettings settings, ILocalSam sam, IJitAccessGroupResolver jitGroupResolver)
 {
     this.logger           = logger;
     this.directory        = directory;
     this.settings         = settings;
     this.sam              = sam;
     this.jitGroupResolver = jitGroupResolver;
 }
        public JitGroupWorker(ILogger <JitGroupWorker> logger, IOptions <JitConfigurationOptions> options, IJitAccessGroupResolver groupResolver, IDirectory directory)
        {
            this.logger            = logger;
            this.options           = options.Value;
            this.groupResolver     = groupResolver;
            this.directory         = directory;
            this.fullSyncInterval  = Math.Max(1, this.options.FullSyncInterval ?? 60);
            this.deltaSyncInterval = Math.Max(0, this.options.DeltaSyncInterval ?? 1);

            if (this.deltaSyncInterval >= this.fullSyncInterval)
            {
                this.deltaSyncInterval = 0;
            }

            this.timerInterval = this.deltaSyncInterval <= 0 ? this.fullSyncInterval : this.deltaSyncInterval;
        }