New DB-Library routines

The following new DB-Library routines enable the option:


DBSETLNETWORKAUTH

Description

Enables or disables network base authentication.

Syntax

RETCODE DBSETLNETWORKAUTH(LOGINREC *loginrec,
DBBOOL enable)

Parameters

loginrec

A pointer to a LOGINREC structure, which is passed as an argument to dbopen. LOGINREC structure can be allocated by calling dblogin.

enable

TRUE or FALSE to indicate whether or not the client will turn on Kerberos network authentication at login. The default value is FALSE.

returns

SUCCEED or FAIL


DBSETLMUTUALAUTH

Description

Enables or disables mutual anthentication of the connection’s security mechanism.

Syntax

RETCODE DBSETLMUTUALAUTH(LOGINREC *loginrec,
DBBOOL enable)

Parameters

loginrec

A pointer to a LOGINREC structure, which is passed as an argument to dbopen. LOGINREC structure can be allocated by calling dblogin.

enable

TRUE or FALSE to indicate whether or not the client will turn on Kerberos network mutual authentication at login. The default value is FALSE.

returns

SUCCEED or FAIL


DBSETLSERVERPRINCIPAL

Description

Sets the server’s principal name, if required.

Syntax

RETCODE DBSETLSERVERPRINCIPAL(LOGINREC *loginrec,
char *name)

Parameters

loginrec

A pointer to a LOGINREC structure, which is passed as an argument to dbopen. LOGINREC structure can be allocated by calling dblogin.

name

The server principal name that will be used for authentication. It must be a null-terminated character string with a maximum length of 255 characters, not including the null terminator. The default value is NULL.

returns

SUCCEED or FAIL