IMetabasePolicy.CheckUserPassword

Syntax

CheckUserPassword: Boolean;

Description

The CheckUserPassword property determines whether authorization by platform means is used.

Comments

The property is set to False by default, and authentication by means of DBMS is used.

If the True value is set, authorization by platform means is used: to access the DBMS data the connection under the built-in administrator is established (the schema owner in DBMS). Passwords and permissions are checked on platform level, and permissions are not granted through the database server.

The enabled built-in authorization will not be used if the integrated domain, domain authentication in DBMS is set in the repository settings.

Example

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

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    Policy := MS.Policy;
    
// Enable the use of embedded authorization
    If Policy.CheckUserPassword = False Then
        Policy.CheckUserPassword := True;
    
End If;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example the authorization by platform means is enabled, if authorization by means of DBMS has been used before.

See also:

IMetabasePolicy