ExcludeAdmin: Boolean;
ExcludeAdmin: System.Boolean;
The ExcludeAdmin property determines whether hashing of administrator password will not be applied.
The administrator (ADMIN) means the scheme owner. The property can be set to:
True. Administrator password is not hashed.
False. By default. Administrator password is hashed.
Cancel of the administrator password hashing can be required when:
To use password of administrator while connecting to database with TOAD, PlsqlDev. For example, to create a user on DBMS level.
To specify password of administrator in connection of a thin client (web.config).
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;
// Get 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;
// Get 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: