IHashedPasswords.ExcludeAdmin

Syntax

ExcludeAdmin: 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 administrator password hashing may be required:

Example

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

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;

After executing the example the password hashing is enabled and the administrator password is not hashed.

See also:

IHashedPasswords