HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (QUERY Verbs)
QUERY_USERID_PASSWORD
Chapter 41006
QUERY_USERID_PASSWORD
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.
This verb returns password information in clear text. Be careful about
how you use this verb, to ensure that unauthorized users are not given
access to password information.
VCB Structure
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 */