|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ reason code 3171 trying to inquire authorization records |
« View previous topic :: View next topic » |
Author |
Message
|
JosN |
Posted: Wed Jan 23, 2008 2:03 am Post subject: MQ reason code 3171 trying to inquire authorization records |
|
|
Newbie
Joined: 23 Jan 2008 Posts: 3
|
Hello,
Extending on the WMQTest class provided by MQ Explorer v 6.0.2.2, I am trying to execute a PCF command (MQCMD_INQUIRE_AUTH_RECS) in order to retrieve the authority records for a queue manager.
But reason code 3171 (MQRCCF_AUTH_VALUE_ERROR) is returned doing so.
According to the PCFs and Admin manual, there are some required and some optional parameters. These are the ones I specify:
PCFMessage inquireQAuth = new PCFMessage(CMQCFC.MQCMD_INQUIRE_AUTH_RECS);
inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_NAME_ALL_MATCHING);
inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_ENTITY_EXPLICIT);
inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_NAME_AS_WILDCARD);
inquireQAuth.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "*");
inquireQAuth.addParameter(CMQCFC.MQIACF_OBJECT_TYPE, CMQC.MQOT_Q);
Can anyone help me please, as I can't seem to figure out what's wrong here. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Jan 23, 2008 4:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Platform Version and CSD of the target Q manager please _________________ MQ & Broker admin |
|
Back to top |
|
 |
JosN |
Posted: Wed Jan 23, 2008 4:32 am Post subject: |
|
|
Newbie
Joined: 23 Jan 2008 Posts: 3
|
The platfom is Windows XP SP2, target queue manager runs locally, version is 6.0.2.2. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 23, 2008 4:41 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You don't include more than one instance of CMQCFC.MQIACF_AUTH_OPTIONS.
From ms03
Code: |
pPCFInteger = (MQCFIN *)(pAdminMsg + MQCFH_STRUC_LENGTH);
pPCFInteger->Type = MQCFT_INTEGER;
pPCFInteger->StrucLength = MQCFIN_STRUC_LENGTH;
pPCFInteger->Parameter = MQIACF_AUTH_OPTIONS;
pPCFInteger->Value = MQAUTHOPT_ENTITY_EXPLICIT+MQAUTHOPT_NAME_ALL_MATCHING; |
So
Code: |
inquireQAuth.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS,
CMQCFC.MQAUTHOPT_NAME_ALL_MATCHING +
CMQCFC.MQAUTHOPT_ENTITY_EXPLICIT +
CMQCFC.MQAUTHOPT_NAME_AS_WILDCARD
);
inquireQAuth.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "*");
inquireQAuth.addParameter(CMQCFC.MQIACF_OBJECT_TYPE, CMQC.MQOT_Q); |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JosN |
Posted: Wed Jan 23, 2008 5:04 am Post subject: |
|
|
Newbie
Joined: 23 Jan 2008 Posts: 3
|
Thanks, Jeff, this solved my problem.
I'm new to PCF (and to Java) programming, won't make this type of error again. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|