DBSETLSERVERPRINCIPAL

Description

Sets the server’s principal name in the LOGINREC structure, if required.

Syntax

DBSETLSERVERPRINCIPAL(loginrec, name)

LOGINREC            *loginrec;
char                        *name;

Parameters

loginrec

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

name

The server’s principal name. The maximum length of the string, not including the null terminator, is 255 characters.

Returns

SUCCEED or FAIL.

Usage

See also

dblogin, DBSETLMUTUALAUTH, DBSETLNETWORKAUTH