Author |
Message
|
sleepyjamie |
Posted: Mon May 11, 2015 11:53 am Post subject: mqsideploy command username |
|
|
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 |
|
 |
joebuckeye |
Posted: Mon May 11, 2015 12:01 pm Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
|
|
Back to top |
|
 |
sleepyjamie |
Posted: Mon May 11, 2015 12:04 pm Post subject: |
|
|
Centurion
Joined: 29 Apr 2015 Posts: 135
|
Yeah I guessed that was the issue. Is there a way to change the username when executing the mqsideploy command? |
|
Back to top |
|
 |
mqjeff |
Posted: Mon May 11, 2015 12:05 pm Post subject: |
|
|
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 |
|
 |
sleepyjamie |
Posted: Mon May 11, 2015 12:07 pm Post subject: |
|
|
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 |
|
 |
sleepyjamie |
Posted: Mon May 11, 2015 12:10 pm Post subject: |
|
|
Centurion
Joined: 29 Apr 2015 Posts: 135
|
Preferably I want to change the user that is executing the mqsideploy command. |
|
Back to top |
|
 |
Vitor |
Posted: Mon May 11, 2015 12:30 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Mon May 11, 2015 12:51 pm Post subject: |
|
|
 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 |
|
 |
|