ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Authorization error when Identity context is set

Post new topic  Reply to topic
 Authorization error when Identity context is set « View previous topic :: View next topic » 
Author Message
jj
PostPosted: Thu Aug 04, 2011 1:07 pm    Post subject: Authorization error when Identity context is set Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 04, 2011 1:41 pm    Post subject: Re: Authorization error when Identity context is set Reply with quote

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
View user's profile Send private message
jj
PostPosted: Thu Aug 04, 2011 5:32 pm    Post subject: Reply with quote

Newbie

Joined: 09 Apr 2008
Posts: 6

Can you please be more specific?

Appreciate your helP!
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 04, 2011 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri Aug 05, 2011 3:40 am    Post subject: Reply with quote

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
View user's profile Send private message
jj
PostPosted: Mon Aug 08, 2011 7:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Authorization error when Identity context is set
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.