|
|
|
|
QUERY_USERID_PASSWORD returns information about user ID / password pairs for use with APPC and CPI-C conversation security, or about profiles for a defined user ID and password. It can be used to obtain information about a specific user ID / password pair or about multiple pairs, depending on the options used.
typedef struct query_userid_password
{
AP_UINT16 opcode; /* Verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* Primary return code */
AP_UINT32 secondary_rc; /* Secondary return code */
unsigned char *buf_ptr; /* pointer to buffer */
AP_UINT32 buf_size; /* buffer size */
AP_UINT32 total_buf_size; /* total buffer size required */
AP_UINT16 num_entries; /* number of entries */
AP_UINT16 total_num_entries; /* total number of entries */
unsigned char list_options; /* listing options */
unsigned char reserv3; /* reserved */
unsigned char user_id[10]; /* user ID */
} QUERY_USERID_PASSWORD;
typedef struct userid_info
{
AP_UINT16 overlay_size; /* size of returned entry */
unsigned char user_id[10]; /* user ID */
USERID_PASSWORD_CHARS password_chars; /* password characteristics */
} USERID_INFO;
typedef struct userid_password_chars
{
unsigned char description[32]; /* resource description */
unsigned char reserv2[16]; /* reserved */
AP_UINT16 profile_count; /* number of profiles */
AP_UINT16 reserv1; /* reserved */
unsigned char password[10]; /* password */
unsigned char profiles[10][10]; /* profiles */
} USERID_PASSWORD_CHARS;
The application supplies the following parameters:
A pointer to a data buffer that SNAP-IX will use to return the requested information.
Size of the supplied data buffer.
Maximum number of user ID / password pairs for which data should be returned. To request a specific entry rather than a range, specify the value 1. To return as many entries as possible, specify zero; in this case, SNAP-IX will return the maximum number of entries that can be accommodated in the supplied data buffer.
The position in the list from which SNAP-IX should begin to return data. Specify one of the following values:
Start at the first entry in the list.
Start at the entry specified by the user_id parameter.
Start at the entry immediately following the entry specified by the user_id parameter.
For more information about how the list is ordered and how the application can obtain specific entries from it, see List Options For QUERY_* Verbs.
User ID. This is a 10-byte type-AE EBCDIC string, padded on the right
with spaces if the name is shorter than 10 characters. The user ID is ignored
if list_options is set to
If the verb executes successfully, SNAP-IX returns the following parameters:
AP_OK
Length of the information returned in the supplied buffer.
Returned value indicating the size of buffer that would have been required to return all the list information requested. A value greater than buf_size indicates that not all the available entries were returned.
Number of entries returned in the data buffer.
Total number of entries available. A value greater than num_entries indicates that not all the available entries were returned.
Each entry in the data buffer consists of the following parameters:
The size of the returned
When your application needs to go through the returned buffer to find
each
User identifier. This is a 10-byte type-AE EBCDIC character string, padded on the right with EBCDIC spaces.
A null-terminated text string describing the user ID and password, as specified in the definition of the user ID and password.
Number of profiles defined for this user.
An encrypted version of the user's password supplied on a DEFINE_USERID_PASSWORD verb. This is a 10-byte type-AE EBCDIC character string, padded on the right with EBCDIC spaces.
Profiles associated with user. Each of these is a 10-byte type-AE EBCDIC character string, padded on the right with EBCDIC spaces.
If the verb does not execute because of a parameter error, SNAP-IX returns the following parameters:
AP_PARAMETER_CHECK
Possible values are:
The list_options parameter was set to
The list_options parameter was not set to a valid value.
Common Return Codes lists further secondary return codes associated with AP_PARAMETER_CHECK, which are common to all NOF verbs.
Common Return Codes lists further combinations of primary and secondary return codes that are common to all NOF verbs.
|
|
|
|
|