IMetabasePasswordPolicy.RequireDifferentLetterCase

Syntax

RequireDifferentLetterCase: Boolean;

RequireDifferentLetterCase: System.Boolean;

Description

The RequireDifferentLetterCase property determines whether a password with letters of a different letter case is required.

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;
    MU: IMetabasePolicy;
    PassPol: IMetabasePasswordPolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Get license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    MU := MS.Policy;
    PassPol := MU.PasswordPolicy;
    
// Prohibit the use of the same case letters in password
    PassPol.RequireDifferentLetterCase := True;
    
// 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;
    MU: IMetabasePolicy;
    PassPol: IMetabasePasswordPolicy;
    Lic: Object;
Begin
    MB := Params.Metabase;
    
// Get license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
    MS := MB.Security;
    MU := MS.Policy;
    PassPol := MU.PasswordPolicy;
    
// Prohibit the use of the same case letters in password
    PassPol.RequireDifferentLetterCase := True;
    
// Save changes
    MS.Apply();
    
// Check in license
    Lic := Null;
End Sub;

After executing the example using of password with letters from a different letter case is requires.

See also:

IMetabasePasswordPolicy