IHashedPasswords.ExcludeAdmin

Syntax

ExcludeAdmin: Boolean;

ExcludeAdmin: System.Boolean;

Description

The ExcludeAdmin property determines whether hashing of administrator password will not be applied.

Comments

The administrator (ADMIN) means the scheme owner. The property can be set to:

Cancel of the administrator password hashing can be required when:

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    MBPolicy: IMetabasePolicy;
    MBPasswordPolicy: IMetabasePasswordPolicy;
    HPass: IHashedPasswords;
    Lic: Object;
Begin
    Mb := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    MBPolicy := MS.Policy;
    MBPasswordPolicy := MBPolicy.PasswordPolicy;
    HPass := MBPasswordPolicy.HashedPasswords;
    HPass.IsON := 
True;
    HPass.ExcludeAdmin := 
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;
    MBPolicy: IMetabasePolicy;
    MBPasswordPolicy: IMetabasePasswordPolicy;
    HPass: IHashedPasswords;
    Lic: Object;
Begin
    Mb := Params.Metabase;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
    MS := MB.Security;
    MBPolicy := MS.Policy;
    MBPasswordPolicy := MBPolicy.PasswordPolicy;
    HPass := MBPasswordPolicy.HashedPasswords;
    HPass.IsON := 
True;
    HPass.ExcludeAdmin := 
True;
    
// Save changes
    MS.Apply();
    
// Check in license
    Lic := Null;
End Sub;

After executing the example the password hashing will be enabled and the admin password is not hashed.

See also:

IHashedPasswords