char strServer\[ SYSTEM_LENGTH + 1 \] = "myserver";
int iMapperPort = 0;
BOOL fSSLRequired = false;
char strUserid\[ USERID_LENGTH + 1 \] = "myuser";
char strPassword\[ PASSWORD_LONG_LENGTH + 1 \] = "mypasswd";
BOOL fEncryptPassword = true;
char strReturnCode\[ RETURN_CODE_LENGTH + 1 \];
char strExpiryDate\[ EXPIRY_DATE_LENGTH + 1 \];
BOOL rc;
rc = LceGetIBMiSignon( strServer, iMapperPort, fSSLRequired, strUserid, strPassword, fEncryptPassword, strReturnCode, strExpiryDate );
if ( rc )
\{
if ( strcmp( strReturnCode, "OK" ) == 0 )
\{
printf( "Signon details successfully retrieved. Expiry Date: %s\n", strExpiryDate );
\}
else
\{
printf( "The request to the server has failed with return code: %s\n", strReturnCode );
\}
\}
else
\{
printf( "The function failed to run successfully\n" );
\}
[ !worddavaf485e25f57cd86bb5b0fc63f3f1b1cc.png|height=32,width=32! |../../index.htm#lansa/srvgudba_0805.htm] |