|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ security question |
« View previous topic :: View next topic » |
Author |
Message
|
guest468 |
Posted: Fri Jul 18, 2008 7:49 am Post subject: MQ security question |
|
|
Centurion
Joined: 30 May 2006 Posts: 146 Location: NY
|
Hi,
I am trying to connect to a QMGR using a svrconn which has mcauser set to null. I can connect to it from java (eclipse) but get authorization error if i try from C.
My understanding is if mcauser is set to null then QMGR uses user's own id to authenticate based on OAM entries. I am inside intranet so I assume my doman-id is what getting matched in OAM. But this id doesnot have any authrorization set (using setmqaut). So i am wondering how my java program is able to connect? (but when i set the mcauser to 'junk' then i get proper authorization error)
Any info on this appreciated.
Thanks |
|
Back to top |
|
 |
SAFraser |
Posted: Fri Jul 18, 2008 8:15 am Post subject: |
|
|
 Shaman
Joined: 22 Oct 2003 Posts: 742 Location: Austin, Texas, USA
|
If you don't specifically set a user ID in your java code for connection purposes, I believe it connects by default as 'mqm'. With no mcauser set on the channel, the 'mqm' user is passed to the queue manager.
When you set the mcauser to 'junk', although your java program connects to the queue manager as 'mqm', the access to the queues themselves is by the user 'junk' - therefore, the authorization fails.
There are a number of ways to make this more secure, depending upon your site's needs.
(I hope I understood your question correctly?) |
|
Back to top |
|
 |
sridhsri |
Posted: Fri Jul 18, 2008 8:52 am Post subject: |
|
|
Master
Joined: 19 Jun 2008 Posts: 297
|
When MQ Client ID is unset or blank, MCA User ID is blank, you should be able to connect because the MCA process id is used.
When MQ Client ID is unset or blank, MCA User ID is Authorized user, you should be able to connect because the authorized user's credentials are used
Irrespective of when MQ Client ID is set or unset, if an unauthorized user is used for MCA User, you will NOT be able to connect.
To summarize, if you set an MCA user, then that is used for authenticating. If it is not set, then the MQ Client Id is used. |
|
Back to top |
|
 |
vinbud117 |
Posted: Sun Jul 20, 2008 6:07 am Post subject: |
|
|
Acolyte
Joined: 22 Jul 2005 Posts: 61
|
sridhsri is perfect.
So in your case, maybe, the java program is not setting any ClientID and the MCAUSER id is blank. So the 'mqm' id is used for authorization.
Since, mqm has all privileges, the Java program is able to connect. |
|
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
|
|
|
|