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 API Support » User-id used for cilent connections ??

Post new topic  Reply to topic
 User-id used for cilent connections ?? « View previous topic :: View next topic » 
Author Message
euphoria
PostPosted: Mon Oct 10, 2005 6:03 am    Post subject: User-id used for cilent connections ?? Reply with quote

Acolyte

Joined: 08 Feb 2004
Posts: 51

One of our developers wrote an application using MQ java api and was able to connect to Queuemanager and get messages from queues. However, No autorities were given to the queue. except mqm, user no one can open or get messages from the queue.
How could the application connect to the queue manager and open queue without proper authorities..?
If we use java api calls, what user id does the program connects to the queue manager and opens the queue ?

Following is code fragment that opens the queue
*********************
MQEnvironment.port = INPUT_QUEUE_PORTNUMBER;
MQEnvironment.hostname = INPUT_QUEUE_HOSTNAME;
MQEnvironment.channel = INPUT_QUEUE_CHANNEL;
m_oMQQueueManager = new MQQueueManager(INPUT_QUEUE_MANAGER);


l_iOpenOptions = MQC.MQOO_INPUT_SHARED ;


m_oQueue = m_oMQQueueManager.accessQueue( INPUT_QUEUE_NAME, l_iOpenOptions, null, null, null);
************************
Back to top
View user's profile Send private message
hopsala
PostPosted: Mon Oct 10, 2005 8:38 am    Post subject: Reply with quote

Guardian

Joined: 24 Sep 2004
Posts: 960

My guess would be that you are connecting with MQ Client - that is, somewhere there's a SVRCONN waiting for your call; most probably, you had configured MCAUSER(mqm) on the said channel.

To understand why this has the effect you described, you should read the Security and Clients manuals, and search this forum (this is a *very* frequent question); for example, when I searched for "client channel authorization" I found security and clients and many other relevant posts.

Enjoy


Last edited by hopsala on Mon Oct 10, 2005 8:40 am; edited 1 time in total
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Oct 10, 2005 8:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Actually, the Java API is the only one that does not set the user id based on the logged in user. It can't, for technical reasons.

Therefore, it by default sets the userid to null. Which unfortunately, mq treats as "mqm".
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
euphoria
PostPosted: Mon Oct 10, 2005 11:14 am    Post subject: Reply with quote

Acolyte

Joined: 08 Feb 2004
Posts: 51

Thanks for your help.
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 API Support » User-id used for cilent connections ??
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.