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 command

Post new topic  Reply to topic
 setmqaut command « View previous topic :: View next topic » 
Author Message
beth_carlin
PostPosted: Thu May 06, 2010 10:40 am    Post subject: setmqaut command Reply with quote

Acolyte

Joined: 08 Jun 2004
Posts: 64

Hello Gurus;

I'd like to ask one question:

If user 'XYZ' wants access to 20 local queues named as
'APP001_Q' to 'APP020_Q' (on the same qmgr)
and
user 'XYZ' is not in the mqm group,

Is there a 'trick' to use setmqauth just once instead of 20 times as below:

setmqaut -m 'QMGR name' -t queue -n APP001_Q -p XYZ +put +inq +crt +get
....
....
......

setmqaut -m 'QMGR name' -t queue -n APP020-Q -p XYZ +put +inq +crt +get


I appreciate your time. Thanks you

Beth
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu May 06, 2010 11:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

MQ authorization wildcards aren't that smart. You could limit to authorizations to APP00*, APP01* and APP02*...

Or you could write a script to generate your setmqaut statements...

#!/usr/bin/perl
for (1..20) {
printf("setmqaut -m 'QMGR name' -t queue -n APP0%02d_Q -p XYZ +put +inq +crt +get \n",$_);
}
Back to top
View user's profile Send private message
zpat
PostPosted: Thu May 06, 2010 12:26 pm    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

setmqaut -m 'QMGR name' -t queue -n APP0%%_Q -p XYZ +put +inq +crt +get
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu May 06, 2010 12:28 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

zpat wrote:
setmqaut -m 'QMGR name' -t queue -n APP0%%_Q -p XYZ +put +inq +crt +get


that gets you access to APP099_Q
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu May 06, 2010 3:16 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

mqjeff wrote:
zpat wrote:
setmqaut -m 'QMGR name' -t queue -n APP0%%_Q -p XYZ +put +inq +crt +get


that gets you access to APP099_Q


setmqaut -m 'QMGR name' -t queue -n APP00%_Q -p XYZ +put +inq +crt +get
setmqaut -m 'QMGR name' -t queue -n APP01%_Q -p XYZ +put +inq +crt +get
setmqaut -m 'QMGR name' -t queue -n APP020_Q -p XYZ +put +inq +crt +get

But that gets you access to APP000_Q !
_________________
Glenn
Back to top
View user's profile Send private message
exerk
PostPosted: Fri May 07, 2010 12:07 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Moving to the Security forum...
_________________
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
mqjeff
PostPosted: Fri May 07, 2010 2:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

gbaddeley wrote:
mqjeff wrote:
zpat wrote:
setmqaut -m 'QMGR name' -t queue -n APP0%%_Q -p XYZ +put +inq +crt +get


that gets you access to APP099_Q


setmqaut -m 'QMGR name' -t queue -n APP00%_Q -p XYZ +put +inq +crt +get
setmqaut -m 'QMGR name' -t queue -n APP01%_Q -p XYZ +put +inq +crt +get
setmqaut -m 'QMGR name' -t queue -n APP020_Q -p XYZ +put +inq +crt +get

But that gets you access to APP000_Q !


And APP00Z_Q
...

Back to top
View user's profile Send private message
zpat
PostPosted: Fri May 07, 2010 3:24 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Yes, the point I was making is that % can substitute for a single character.

Personally I would not allow queue names of different applications to be so closely named and yet require different ACLs.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 07, 2010 4:31 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

zpat wrote:
Yes, the point I was making is that % can substitute for a single character.

Personally I would not allow queue names of different applications to be so closely named and yet require different ACLs.




But I can also see edge cases where different components of "the same" application have different acl requirements.

And I also wanted to point out that using wildcards has implications for the security auths that are granted. These implications *need* to be considered, even if they aren't realistic in the actual scenario.
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 command
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.