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 generic profiles

Post new topic  Reply to topic
 setmqaut generic profiles « View previous topic :: View next topic » 
Author Message
zpat
PostPosted: Tue Nov 03, 2009 2:41 am    Post subject: setmqaut generic profiles Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

I want to implement some generic setmqaut profiles for queue security.

Currently these queues each have their own setmqaut profile created automatically when the queue was defined (e.g. HLQ.A.B.C)

If I now create a generic setmqaut security profile (e.g. HLQ.**) to cover the same queues, do I have to delete the specific profiles so that this new one takes effect?

Presumably the queue manager create a specific setmqaut profile for a new queue, if there is not a generic profile covering it at the time of definition?

Does the queue manager only ever match the most specific security profile, or if that does not grant access will it look at more generic ones?
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Tue Nov 03, 2009 3:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2602
Location: The Netherlands (Amsterdam)

I just gave that a shot and putting in the HLQ definition does not cleanup the old ones, figuring out which one is in effect can best be experienced on a test system I guess to be sure...
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zpat
PostPosted: Tue Nov 03, 2009 3:34 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

The QM seems to create specific profiles for new queues even when the generic profile is in place.

Can anyone offer some best practice guidelines for working with generic setmqaut profiles?
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Tue Nov 03, 2009 3:39 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2602
Location: The Netherlands (Amsterdam)

zpat wrote:
The QM seems to create specific profiles for new queues even when the generic profile is in place.

only for the mqm group id and any user id in the mqm group on my windows machine, not for non mqm userids like mquser:

Quote:

setmqaut -m TTTT -n HLQ.A.B.C.D -t queue -p Michael@T61P-001 +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp
setmqaut -m TTTT -n HLQ.A.B.C.D -t queue -g mqm +browse +get +inq +passall +passid +put +set +setall +setid +chg +clr +dlt +dsp
setmqaut -m TTTT -n HLQ.** -t queue -p mquser@T61P-001 +browse

_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zpat
PostPosted: Tue Nov 03, 2009 4:45 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Which brings me back to the question - the manual says the most specific profile only is used.

Surely this wouldn't work unless it also looks at the generic profile as well?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Nov 03, 2009 4:57 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

zpat wrote:
Which brings me back to the question - the manual says the most specific profile only is used.

Surely this wouldn't work unless it also looks at the generic profile as well?


I suspect the code asks for the most specific profile first. If it doesn't get a response, it asks again for something less specific, and repeats until it gets a good answer or it's out of wildcards.

So it's probably not reasonable to say that it looks at the generic profiles unless it has to.
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Nov 03, 2009 6:04 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

So is the correct answer - that the most specific setmqaut profile which relates to a relevant group membership for this access attempt is used to determine access rights?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Sat Nov 21, 2009 5:22 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

Moved to Security forum.

The most restrictive rule applies to RACF mainframe security, as well.
_________________
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
zpat
PostPosted: Tue Jan 12, 2010 7:15 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

MQExplorer (or at least a recent fix level of it) has some nice features to display the setmqaut profiles (object authorities), including generic profiles (be nice if MO71 could have something to do this).

It can also display the cummulative authorities of the profiles matching the resource (which seems to be the answer to what access is granted).

My question now is, has anyone taken the step of removing all the specific (explicit) profiles and just using some generic ones (e.g. SYSTEM.**)?

The problem as I see it is that MQ creates a new specific profile automatically when a queue is created.

(1) Is it necessary to retain these specific profiles (assuming mqm is granted full access via a generic one)?

(2) Is there any way to suppress creation of these specific profiles when a new queue is created?

It would seem a lot simpler to just have a handful of generic profiles (or even just "**" for granting mqm access) than to have hundreds of explicit profiles (one per queue).

Interested in what other sites do to make this simpler to manage?
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Jan 12, 2010 1:48 pm    Post subject: Reply with quote

Grand Master

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

Well, I like the rule that only mqm creates objects.

If you must do it as somebody else, make sure mqm is the primary group. UNIX only grants by group. Windows just sucks.

Often, I will get rid of all implicit ACL creations due to creating objects.

One of my main pet peeves is having to grant everything to the XMITQ so a server can reply to a msg's ReplyToQ and ReplyToQmgr. I should be able to create a reply to msgs based on a request I received. But I guess, how would MQ know if I built it or received it...
Back to top
View user's profile Send private message AIM Address
PeterPotkay
PostPosted: Tue Jan 12, 2010 4:40 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7716

zpat wrote:
MQExplorer (or at least a recent fix level of it) has some nice features to display the setmqaut profiles (object authorities), including generic profiles (be nice if MO71 could have something to do this).


MO71 does.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jan 12, 2010 4:57 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9400
Location: US: west coast, almost. Otherwise, enroute.

Quote:
One of my main pet peeves is having to grant everything to the XMITQ so a server can reply to a msg's ReplyToQ and ReplyToQmgr. I should be able to create a reply to msgs based on a request I received. But I guess, how would MQ know if I built it or received it...

This is the security exposure that reply msgs (and COA and COD) pose to the requesting app.

A best-practice envisions the requesting apps knowing which request msgs it sent, and then matching them against replies it receives.

Not everyone should be able to put a msg to an xmit queue.
_________________
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
zpat
PostPosted: Wed Jan 13, 2010 6:26 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

PeterPotkay wrote:
zpat wrote:
MQExplorer (or at least a recent fix level of it) has some nice features to display the setmqaut profiles (object authorities), including generic profiles (be nice if MO71 could have something to do this).


MO71 does.


So it does, under authorisation record list.

Not perhaps the easiest to use part of MO71. I tried to add and modify profiles but it had problems. Also does not seem to allow options like -all, or +allmqi which the setmqaut command does.

Probably needs a bit of updating, I'll drop the Author some suggestions to make it more useful.
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 generic profiles
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.