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 » IBM MQ Security » setmqaut question

Post new topic  Reply to topic
 setmqaut question « View previous topic :: View next topic » 
Author Message
given2fly
PostPosted: Fri Oct 31, 2014 9:56 am    Post subject: setmqaut question Reply with quote

Newbie

Joined: 18 Sep 2014
Posts: 5

Hello all,

I am trying to setup read-only access to all queues for a group that I created for users who use MQexplorer. I am running the command below:

$ setmqaut -m QMNAME -t q -n '**' -g mqexp +dsp +browse
The setmqaut command completed successfully.

But it doesnt set the permissions for all queues:
$ dspmqaut -m QMNAME -t q -n 'QL.*' -g mqexp
Entity mqexp has the following authorizations for object QL.*:


I have tried different variations of using the wildcards "**" "*.**" *.** but it doesnt make a difference. What am I missing?

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Oct 31, 2014 10:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

there's a difference between dspmqaut and dmpmqaut.
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Oct 31, 2014 10:07 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Take a look at THIS, which is V7.0, but should give you a starter for 10...
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
given2fly
PostPosted: Fri Oct 31, 2014 10:21 am    Post subject: Reply with quote

Newbie

Joined: 18 Sep 2014
Posts: 5

OK so the authorizations are there, it looks like I was running into a wild card issue OR judging from the below dmpmqaut output, it created separate profiles for every one of my wildcard attempt:

$ dmpmqaut -m QMNAME -t q -n QL.OUT.B2B -g mqexp
profile: *.**
object type: queue
entity: mqexp
entity type: group
authority: browse dsp
- - - - - - - -
profile: **
object type: queue
entity: mqexp
entity type: group
authority: browse dsp

$ dspmqaut -m QMNAME -t q -n QL.OUT.B2B -g mqexp
Entity mqexp has the following authorizations for object QL.OUT.B2B:
browse
dsp


Hopefully its OK to have multiple profiles like the above. Thanks to mqjeff for giving me the hint.
exerk,

your link took me to a page that doesnt exist.
Back to top
View user's profile Send private message
exerk
PostPosted: Fri Oct 31, 2014 1:07 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

given2fly wrote:
exerk,

your link took me to a page that doesnt exist.

Muy bad, I should have checked. Oddly enough this works (copied from the address bar):

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.csqzas.doc/sy13630_.htm

But this, copied from the bottom of the page (which is what I did earlier), doesn't:

http://www-01.ibm.com/support/knowledgecenter/nl/en/SSFKSJ_7.0.1/com.ibm.mq.csqzas.doc/sy13630_.htm

My apologies
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Mon Nov 03, 2014 7:44 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

given2fly wrote:
OK so the authorizations are there, it looks like I was running into a wild card issue OR judging from the below dmpmqaut output, it created separate profiles for every one of my wildcard attempt:

$ dmpmqaut -m QMNAME -t q -n QL.OUT.B2B -g mqexp
profile: *.**
object type: queue
entity: mqexp
entity type: group
authority: browse dsp
- - - - - - - -
profile: **
object type: queue
entity: mqexp
entity type: group
authority: browse dsp

$ dspmqaut -m QMNAME -t q -n QL.OUT.B2B -g mqexp
Entity mqexp has the following authorizations for object QL.OUT.B2B:
browse
dsp


Hopefully its OK to have multiple profiles like the above. Thanks to mqjeff for giving me the hint.
exerk,

your link took me to a page that doesnt exist.


Well... *.** is more specific than **, but you gave the same permissions...
You should be as clean as possible and remove any rules you don't want.
Here is an article on your specific topic.

btw, I prefer amqoamd to dspmqaut. Use grep -v 'g mqm' to filter out stuff you don't need (like all of the group mqm permissions).
Back to top
View user's profile Send private message AIM Address
JosephGramig
PostPosted: Mon Nov 03, 2014 7:51 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

So, what have you done to ensure they don't just connect as mqm or the Windows service ID to gain full administrative control?

Exerk's link was probably better than mine...
Back to top
View user's profile Send private message AIM Address
given2fly
PostPosted: Wed Nov 05, 2014 11:55 am    Post subject: Reply with quote

Newbie

Joined: 18 Sep 2014
Posts: 5

Yes. We deployed MQ/MB a few years ago and are just getting smarter about MQ security. We thought we were setting rights for individual users (-p option with setmqaut) but during a recent audit realized that MQ was using the primary group instead. That made everyone was part of the mqm/mqbrkrs group. So we now have moved them to another group with limited privileges.

I was also able to figure out how to clean up the orphaned AUTHRECs left behind after the setmqaut -all for the default primary user group.

I think we still have some ground to cover as I am reading that using the default SVRCONN channels isnt a good idea. But am taking it one step at a time.

Thanks,
Back to top
View user's profile Send private message
exerk
PostPosted: Wed Nov 05, 2014 12:06 pm    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

given2fly wrote:
I think we still have some ground to cover as I am reading that using the default SVRCONN channels isnt a good idea. But am taking it one step at a time.

The current IBM MQ Security Bible as far as I' m concerned...

...and yes, I checked the link this time!
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
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 » IBM MQ Security » setmqaut question
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.