IMetabasePolicy.FailedLogonsCounter_ResetPeriod

Syntax

FailedLogonsCounter_ResetPeriod: Integer;

FailedLogonsCounter_ResetPeriod: System.Int32;

Description

The FailedLogonsCounter_ResetPeriod property determines the period (in minutes) after which the counter of failed logon number reset.

Example

To execute the example, add links to the Metabase, ForeSystem (for the Fore.NET example) system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    Policy := MS.Policy;
    
// Set period after which the counter is reset
    Policy.FailedLogonsCounter_ResetPeriod := 10;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := Params.Metabase;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
    MS := MB.Security;
    Policy := MS.Policy;
    
// Set period after which the counter is reset
    Policy.FailedLogonsCounter_ResetPeriod := 10;
    
// Save changes
    MS.Apply();
    
// Check in license
    Lic := Null;
End Sub;

After executing this example the counter of failed logons number reset in every ten minutes.

See also:

IMetabasePolicy