Author |
Message
|
jj |
Posted: Thu Aug 04, 2011 1:07 pm Post subject: Authorization error when Identity context is set |
|
|
Newbie
Joined: 09 Apr 2008 Posts: 6
|
Language - C#
I am trying to connect to a remote queue (security exit also implemented). MQ is running as a client in this particular server. When MQOO_SET_IDENTITY_CONTEXT is set in the OPEN options I get MQRC_NOT_AUTHORIZED error.
If I try to open the queue without Identity context it's success. Also If I try to send a message without setting the identity context the ApplIdentityData is BLANK and hence the message is being rejected by the receiving app!
Any help to solve this issue is highly appreciated.
Thanks! |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Aug 04, 2011 1:41 pm Post subject: Re: Authorization error when Identity context is set |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
jj wrote: |
When MQOO_SET_IDENTITY_CONTEXT is set in the OPEN options I get MQRC_NOT_AUTHORIZED error.
|
Working as designed and documented. Setting identity context requires additional authority - beyond put. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
jj |
Posted: Thu Aug 04, 2011 5:32 pm Post subject: |
|
|
Newbie
Joined: 09 Apr 2008 Posts: 6
|
Can you please be more specific?
Appreciate your helP! |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Aug 04, 2011 6:00 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I refer you to the WMQ Application Programming Reference and WMQ Application Programming Guide.
Search each for MQOO_SET_IDENTITY_CONTEXT. MQOO_ are mqopen options. Set identity requires more authority than just plain mqopen for input/output/inquire. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 05, 2011 3:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
jj wrote: |
Can you please be more specific?
Appreciate your helP! |
to be more specific, someone needs to run an additional setmqaut command. |
|
Back to top |
|
 |
jj |
Posted: Mon Aug 08, 2011 7:20 am Post subject: |
|
|
Newbie
Joined: 09 Apr 2008 Posts: 6
|
thanks mqjeff!
Your advice for the setmqaut command helped me in figuring out that the authority for Q mgr was not set! |
|
Back to top |
|
 |
|