IMetabasePolicy.CheckUserPassword

Fore Syntax

CheckUserPassword: Boolean;

Fore.NET Syntax

CheckUserPassword: System.Boolean;

Description

The CheckUserPassword property determines whether the authorization by means of Prognoz Platform 9 will be used.

Comments

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

On setting the True value the authorization by means of Prognoz Platform 9 tools is used: to access the DBMS data the connection under the built-in administrator is established (the user of the schema in the DBMS). Passwords and permissions are checked at the Prognoz Platform 9 level and permissions are not granted through the database server.

Enabled built-in authorization is not used if the integrated domain, domain or role authentication in DBMS is set in the repository settings.

Fore Example

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

Sub UserProc;
Var
   MB: IMetabase;
   MS: IMetabaseSecurity;
   Policy: IMetabasePolicy;
Begin
    MB := MetabaseClass.Active;
    MS := MB.Security;
    Policy := MS.Policy;
    If Policy.CheckUserPassword = False Then
        Policy.CheckUserPassword := True;
        MS.Apply;
    End If;
End Sub UserProc;

After executing the example the authorization by means of Prognoz Platform 9 is enabled, if the authorization by means of DBMS was used before.

Fore.NET Example

The specified procedure is an entry point for the .NET assembly.

Public Shared Sub UserProc(Params: StartParams);
Var
        MB: IMetabase;
        MS: IMetabaseSecurity;
        Policy: IMetabasePolicy;
    Begin
        MB := Params.Metabase;
        MS := MB.Security;
        Policy := MS.Policy;
        If Policy.CheckUserPassword = False Then
            Policy.CheckUserPassword := True;
            MS.Apply();
        End If;
    End Sub;

After executing the example the authorization by means of Prognoz Platform 9 is enabled, if the authorization by means of DBMS was used before.

See also:

IMetabasePolicy