IMetabasePasswordPolicy.MaxRepeatedCharCount

Syntax

MaxRepeatedCharCount: Integer;

Description

The MaxRepeatedCharCount property determines the maximum number of repeated characters that can be used in a password.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    MU: IMetabasePolicy;
    PassPol: IMetabasePasswordPolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    MU := MS.Policy;
    PassPol := MU.PasswordPolicy;
    
// Set number of repeated characters in password
    PassPol.MaxRepeatedCharCount := 2;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example two repeated characters can be used in a user password.

See also:

IMetabasePasswordPolicy