|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Pub/Sub Authorities |
« View previous topic :: View next topic » |
Author |
Message
|
bobbee |
Posted: Fri Sep 17, 2021 10:50 am Post subject: Pub/Sub Authorities |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
Issued the following commands. on SETMQAUT Got a 2035 with the EXACT Topic, TOPIC with **. When a complete wild card was used the publish was successful. What was wrong?
Code: |
create topic('ccssppoc') TOPICSTR('ccssppoc')
setmqaut -m QMGR -p cdsvcdev -n 'ccssppoc**' -t topic -all +dsp +pub +sub
setmqaut -m QMGR -p cdsvcdev -n 'ccssppoc' -t topic -all +dsp +pub +sub |
AMQ8009W: Entity 'cdsvcdev' has insufficient authority to access topic string
'ccssppoc'.
EXPLANATION:
The specified entity is not authorized to access the required topic. The
following permissions were requested: sub
ACTION:
Ensure that the correct level of authority has been set for this entity against
appropriate topic objects, or ensure that the entity is a member of a
privileged group.
Code: |
setmqaut -m QMGR -p cdsvcdev -n '**' -t topic -all +dsp +pub +sub |
Success |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Sep 18, 2021 11:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
That's because when you're authorizing a topic, you are only indirectly authorizing a topic string. The authorization goes for a topic object!.
Did you have a topic object created with the string in question? Note that usually the topic authorization is valid for the topic in question and all its subtopics whether a subtopic object is defined or not (inheritance).
So authorizing topic object TOPIC1 with topic string "/sports", would authorize topic strings /sports, /sports/soccer, /sports/baseball, /sports/tennis etc...
Quote: |
setmqaut -m QMGR -p cdsvcdev -n 'TOPIC1' -t topic -all +dsp +pub +sub |
Hope this helps explaining.
With the ** you just authorized all topics... it is the equivalent of authorizing topic SYSTEM.DEFAULT.TOPIC  _________________ MQ & Broker admin |
|
Back to top |
|
 |
hughson |
Posted: Sun Sep 19, 2021 10:22 pm Post subject: Re: Pub/Sub Authorities |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
bobbee wrote: |
What was wrong?
Code: |
create topic('ccssppoc') TOPICSTR('ccssppoc') |
|
Possibility that this line didn't work since it should be 'DEFINE' not 'create'. When you issue the following command, what do you see?
Code: |
DISPLAY TOPIC('ccssppoc') |
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
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
|
|
|
|