Page History
...
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" );
...
}