HashedPasswords: IHashedPasswords;
The HashedPasswords property determines password hashing parameters.
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;
// Set password hashing
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: