ExcludeAdmin: 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. Default value. Administrator password is hashed.
Cancel of administrator password hashing may be required:
To use administrator password while connecting to database by means of TOAD, PlsqlDev. For example, to create a user on DBMS level.
To specify administrator password during web application connection (web.config).
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: