IPrimaryTeradataSPLD.AuthenticationMethod

Fore Syntax

AuthenticationMethod: TeradataAuthenticationMethod;

Fore.NET Syntax

TeradataAuthenticationMethod: Prognoz.Platform.Interop.Metabase.TeradataAuthenticationMethod;

Description

The AuthenticationMethod property determines an authentication mechanism on connecting to Teradata DBMS.

Fore Example

Using the example requires a database containing Terada DBMS with the DATABASE identifier. It is required that the form contains the Button component with the Button1 identifier.

Add links to the Db and Metabase system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    MB: IMetabase;
    DbObj: IMetabaseObject;
    DB: IDatabase;
    LogonData: IPrimaryTeradataSPLD;
Begin
    
//Get database
    MB := MetabaseClass.Active;
    DbObj := MB.ItemByID(
"DATABASE").Edit;
    
//Get security unit parameters
    DB := DbObj As IDatabase;
    LogonData := DB.LogonData 
As IPrimaryTeradataSPLD;
    
//Set authentication mechanism
    LogonData.AuthenticationMethod := TeradataAuthenticationMethod.LDAP;
    DbObj.Save;
End Sub Button1OnClick;

After executing the example clicking the button changes the authentication mechanism on connecting to Teradata DBMS on LDAP.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    MB: IMetabase;
    DbObj: IMetabaseObject;
    DB: IDatabase;
    LogonData: IPrimaryTeradataSPLD;
Begin
    
//Get database
    MB := Self.Metabase;
    DbObj := MB.ItemByID[
"DATABASE"].Edit();
    
//Get security unit parameters
    DB := DbObj As IDatabase;
    LogonData := DB.LogonData 
As IPrimaryTeradataSPLD;
    
//Set authentication mechanism
    LogonData.AuthenticationMethod := TeradataAuthenticationMethod.trdtamLDAP;
    DbObj.Save();
End Sub

See also:

IPrimaryTeradataSPLD