IPrimaryTeradataSPLD.AuthenticationMethod

Syntax

AuthenticationMethod: TeradataAuthenticationMethod;

Description

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

Example

Executing the example requires a database containing Teradata 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 module 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.

See also:

IPrimaryTeradataSPLD