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 » Pub/Sub Authorities

Post new topic  Reply to topic
 Pub/Sub Authorities « View previous topic :: View next topic » 
Author Message
bobbee
PostPosted: Fri Sep 17, 2021 10:50 am    Post subject: Pub/Sub Authorities Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 541
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
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Sat Sep 18, 2021 11:40 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
hughson
PostPosted: Sun Sep 19, 2021 10:22 pm    Post subject: Re: Pub/Sub Authorities Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Pub/Sub Authorities
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.