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 » WebSphere Message Broker (ACE) Support » mqsideploy command username

Post new topic  Reply to topic
 mqsideploy command username « View previous topic :: View next topic » 
Author Message
sleepyjamie
PostPosted: Mon May 11, 2015 11:53 am    Post subject: mqsideploy command username Reply with quote

Centurion

Joined: 29 Apr 2015
Posts: 135

I'm trying to deploy a bar file using the mqsideploy command and I am receiving the following error. I don't see anywhere in the documentation where you can specify a username/password for mqsideploy



C:\myproject> mqsideploy -n ib9node.broker -a build\MCP-PubSub-1.0.bar -e default
BIP1044I: Connecting to the queue manager...
BIP1046E: Unable to connect with the queue manager (The user 'jamie' is not authorized to connect to queue manager 'IB9QMGR' (MQ reason code 2035 while trying to connect)).

The utility encountered a problem while attempting to connect to the queue manager to put a message to the broker's request queue.

Ensure that the correct connection parameters have been supplied to the utility. Also ensure that the queue manager is running and that the current user is able to access the queues beginning SYSTEM.BROKER. If this error text includes an MQ reason code, look up the meaning behind the error in the Application Programming Reference guide and proceed as appropriate.
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Mon May 11, 2015 12:01 pm    Post subject: Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 365
Location: Columbus, OH

It is an MQ security issue. The user you are trying to use doesn't have access to the queue.

http://www-01.ibm.com/support/docview.wss?uid=swg21166937
Back to top
View user's profile Send private message
sleepyjamie
PostPosted: Mon May 11, 2015 12:04 pm    Post subject: Reply with quote

Centurion

Joined: 29 Apr 2015
Posts: 135

joebuckeye wrote:
It is an MQ security issue. The user you are trying to use doesn't have access to the queue.

http://www-01.ibm.com/support/docview.wss?uid=swg21166937


Yeah I guessed that was the issue. Is there a way to change the username when executing the mqsideploy command?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 11, 2015 12:05 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sleepyjamie wrote:
Is there a way to change the username when executing the mqsideploy command?


Many.

Are you administering the qmgr as well as the b roker?
Back to top
View user's profile Send private message
sleepyjamie
PostPosted: Mon May 11, 2015 12:07 pm    Post subject: Reply with quote

Centurion

Joined: 29 Apr 2015
Posts: 135

mqjeff wrote:
sleepyjamie wrote:
Is there a way to change the username when executing the mqsideploy command?


Many.

Are you administering the qmgr as well as the b roker?


This is on my local dev machine. So I guess I have admin rights to do whatever I want.
Back to top
View user's profile Send private message
sleepyjamie
PostPosted: Mon May 11, 2015 12:10 pm    Post subject: Reply with quote

Centurion

Joined: 29 Apr 2015
Posts: 135

Preferably I want to change the user that is executing the mqsideploy command.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon May 11, 2015 12:30 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sleepyjamie wrote:
This is on my local dev machine. So I guess I have admin rights to do whatever I want.


You'd guess wrong, or the deploy would work....

The mqsideploy command "simply" puts a message on the command queue, so the MQ security (and how you supply a different user id / password) is the same as how you'd do it for any MQ application. Example include (but are not limited to):

- running the mqsideploy in a different command shell with a different user
- supplying an id in the MCAUser parameter
- etc
- etc

Note that if you're on MQv7.5, out of the box it issues a 2035 if someone who's an admin (like you) tries to connect over a channel.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon May 11, 2015 12:51 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

from the .broker file dare I guess that you are using a client connection?
Have you looked at the IBM_JAVA_OPTIONS environment variable? mqsideploy calls it... or at least it used to... now it is an exe...

You can also look at the java API and write your own... and mqsideployscript will accept a ton of parms
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » mqsideploy command username
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.