This function is provided by a user ID service component, and is invoked by the queue manager to find the user ID, and optionally the password, to be associated with an application, when the application issues an MQCONN call.
The function identifier for this function (for MQZEP ) is MQZID_FIND_USERID.
|
The MQZ_FIND_USERID call has the following parameters.
Queue manager name.
The name of the queue manager calling the component. This name is padded with blanks to the full length of the parameter; the name is not terminated by a null character.
The queue-manager name is passed to the component for information; the user ID service interface does not require the component to make use of it in any defined manner.
User identifier.
The user identifier to be associated with this application. The value returned by the service component must be padded on the right with blanks to the full length of the parameter; the value must not be terminated by a null character.
Password.
The password associated with the user identifier. The value returned by the service component must be padded on the right with blanks to the full length of the parameter; the value must not be terminated by a null character.
If it is not necessary to return a password, the parameter should be set to blanks.
Component data.
This data is kept by the queue manager on behalf of this particular component; any changes made to it by any of the functions provided by this component are preserved, and presented the next time one of this component's functions is called.
The length of this data area is passed by the queue manager in the ComponentDataLength parameter of the MQZ_INIT_USERID call.
Continuation indicator set by component.
The following values can be specified:
For MQZ_FIND_USERID this has the same effect as MQZCI_CONTINUE.
Completion code.
Reason code qualifying CompCode.
If CompCode is MQCC_FAILED:
For more information on these reason codes, see the WebSphere MQ Application Programming Reference.
MQZ_FIND_USERID (QMgrName, UserId, Password, ComponentData, &Continuation, &CompCode, &Reason);
The parameters passed to the service are declared as follows:
MQCHAR48 QMgrName; /* Queue manager name */ MQCHAR12 UserId; /* User identifier */ MQCHAR12 Password; /* Password */ MQBYTE ComponentData[n]; /* Component data */ MQLONG Continuation; /* Continuation indicator set by component */ MQLONG CompCode; /* Completion code */ MQLONG Reason; /* Reason code qualifying CompCode */