FailedLogonsCounter_ResetPeriod: Integer;
The FailedLogonsCounter_ResetPeriod property determines the period (in minutes), after which the counter of failed logons or failed attempts to enter the current password during password change is reset.
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;
// Get license to work with the 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 the current password is reset each ten minutes.
See also: