The following new DB-Library routines enable the option:
Enables or disables network base authentication.
RETCODE DBSETLNETWORKAUTH(LOGINREC *loginrec, DBBOOL enable)
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
Enables or disables mutual anthentication of the connection’s security mechanism.
RETCODE DBSETLMUTUALAUTH(LOGINREC *loginrec, DBBOOL enable)
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
Sets the server’s principal name, if required.
RETCODE DBSETLSERVERPRINCIPAL(LOGINREC *loginrec, char *name)
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