IMetabaseAuthenticationPolicy.DisableInternalAuthentication

Fore Syntax

DisableInternalAuthentication;

Fore.NET Syntax

DisableInternalAuthentication;

Description

The DisableInternalAuthentication method disables authorization by means of Prognoz Platform 9 tools.

Comments

The method is outdated, use IMetabasePolicy.CheckUserPassword.

Authorization by means of Prognoz Platform 9 tools is disabled if it was used earlier.

Fore Example

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

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    AP: IMetabaseAuthenticationPolicy; 
Begin
    MB := MetabaseClass.Active;
    MS := MB.Security;
    Policy := MS.Policy;
    AP := Policy.AuthenticationPolicy;
    AP.DisableInternalAuthentication;
    MS.Apply;
End Sub UserProc;

After executing the example authorization by means of Prognoz Platform 9 tools is disabled if it was used earlier.

Fore.NET Example

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

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    Policy: IMetabasePolicy;
    AP: IMetabaseAuthenticationPolicy; 
Begin
    MB := Params.Metabase;
    MS := MB.Security;
    Policy := MS.Policy;
    AP := Policy.AuthenticationPolicy;
    AP.DisableInternalAuthentication();
    MS.Apply();
End Sub;

After executing the example authorization by means of Prognoz Platform 9 tools is disabled if it was used earlier.

See also:

IMetabaseAuthenticationPolicy