Exemplo n.º 1
0
        /// <summary>
        /// Update method implmentation
        /// </summary>
        public void Load(PSHost host)
        {
            ManagementService.Initialize(host, true);
            MFAConfig cfg = ManagementService.Config;

            AdminContact         = cfg.AdminContact;
            IsDirty              = cfg.IsDirty;
            DeliveryWindow       = cfg.DeliveryWindow;
            TOTPShadows          = cfg.OTPProvider.TOTPShadows;
            MailEnabled          = cfg.MailProvider.Enabled;
            SMSEnabled           = cfg.ExternalProvider.Enabled;
            AppsEnabled          = cfg.OTPProvider.Enabled;
            AzureEnabled         = cfg.AzureProvider.Enabled;
            BiometricsEnabled    = false;
            DefaultPin           = cfg.DefaultPin;
            PinLength            = cfg.PinLength;
            Algorithm            = cfg.OTPProvider.Algorithm;
            Issuer               = cfg.Issuer;
            UseActiveDirectory   = cfg.UseActiveDirectory;
            CustomUpdatePassword = cfg.CustomUpdatePassword;
            DefaultCountryCode   = cfg.DefaultCountryCode;
            AdminContact         = cfg.AdminContact;
            UserFeatures         = cfg.UserFeatures;
            AdvertisingDays      = cfg.AdvertisingDays;
        }
        /// <summary>
        /// Update method implmentation
        /// </summary>
        public void Load(PSHost host)
        {
            ManagementService.Initialize(host, true);
            MFAConfig cfg = ManagementService.Config;

            AdminContact           = cfg.AdminContact;
            IsDirty                = cfg.IsDirty;
            DeliveryWindow         = cfg.DeliveryWindow;
            MaxRetries             = cfg.MaxRetries;
            DefaultPin             = cfg.DefaultPin;
            PinLength              = cfg.PinLength;
            Issuer                 = cfg.Issuer;
            UseActiveDirectory     = cfg.UseActiveDirectory;
            CustomUpdatePassword   = cfg.CustomUpdatePassword;
            DefaultCountryCode     = cfg.DefaultCountryCode;
            KeepMySelectedOptionOn = cfg.KeepMySelectedOptionOn;
            AdminContact           = cfg.AdminContact;
            UserFeatures           = cfg.UserFeatures;
            AdvertisingDays        = cfg.AdvertisingDays;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Update method implmentation
        /// </summary>
        public void Load(PSHost host)
        {
            ManagementService.Initialize(host, true);
            MFAConfig cfg = ManagementService.Config;

            AdminContact         = cfg.AdminContact;
            IsDirty              = cfg.IsDirty;
            RefreshScan          = cfg.RefreshScan;
            DeliveryWindow       = cfg.DeliveryWindow;
            TOTPShadows          = cfg.TOTPShadows;
            MailEnabled          = cfg.MailEnabled;
            SMSEnabled           = cfg.SMSEnabled;
            AppsEnabled          = cfg.AppsEnabled;
            Algorithm            = cfg.Algorithm;
            Issuer               = cfg.Issuer;
            UseActiveDirectory   = cfg.UseActiveDirectory;
            CustomUpdatePassword = cfg.CustomUpdatePassword;
            DefaultCountryCode   = cfg.DefaultCountryCode;
            AdminContact         = cfg.AdminContact;
            UserFeatures         = cfg.UserFeatures;
            AdvertisingDays      = cfg.AdvertisingDays;
        }