IMetabasePolicy.FailedLogonsCounter_ResetPeriod

Syntax

FailedLogonsCounter_ResetPeriod: Integer;

Description

The FailedLogonsCounter_ResetPeriod property determines the period (in minutes), after which the counter of failed logons or failed attempts to enter old password during password change is reset.

Example

To execute the example, add a link to the Metabase system assembly.

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 the period, after which counter is reset
    Policy.FailedLogonsCounter_ResetPeriod := 10;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example the counter of the number of failed logons or failed attempts to enter old password is reset each ten minutes.

See also:

IMetabasePolicy