|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQRC_NOT_AUTHORIZED occurs when connecting to a QueueManager |
« View previous topic :: View next topic » |
Author |
Message
|
websphereNovice |
Posted: Tue Apr 27, 2004 2:00 pm Post subject: MQRC_NOT_AUTHORIZED occurs when connecting to a QueueManager |
|
|
Newbie
Joined: 27 Apr 2004 Posts: 2
|
Hello,
I have WebSphere MQ 5.3 installed on a development server. I am trying to connect to a queue in a particular QueueManager from my local machine (which is in the same domain as the machine which has MQ Server and can access it freely) using .NET client API. In the object instantiation call to MQQueueManager, I am getting an MQException with message MQRC_NOT_AUTHORIZED reasoncode 2035 completion Code 2.
I am wondering how to set the authentication info for the client. If some tips or links to simple examples showing how to deal with it can be given, it would be greatly appreciated.
Thanks,
Steve. |
|
Back to top |
|
 |
Missam |
Posted: Tue Apr 27, 2004 5:56 pm Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
If the user id your are running the application is not in the Admin group you need to authorize the user with setmqaut
look up for the command syntax in WMQ Admin's guide for exact syntax. |
|
Back to top |
|
 |
mqonnet |
Posted: Wed Apr 28, 2004 4:40 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
If you are using an MQ client on your machine, which is what it looks like, then you need to define a userid/principal on the remote/development machine/server with the same userid that you are logged in as. Make it part of mqm group on the dev system for full access or use setmqaut as iamsam mentioned to grant specific access.
As an aside, if you search this forum for 2035, you would get a boat load of hits that you can read through and get your answers and better understanding.:)
Cheers
Kumar |
|
Back to top |
|
 |
websphereNovice |
Posted: Wed Apr 28, 2004 10:50 am Post subject: |
|
|
Newbie
Joined: 27 Apr 2004 Posts: 2
|
Thanks for your responses. I created a local user on the server with the same name as the one I am using to connect from client. I added this user to mqm role (presently I am not interested in giving any specific previledges, so didnt use setmqaut). Now the client is able to connect fine to the server.
I was wondering if there is a possibility to specify the userId and Password from the client application code instead of relying on which user account the code is running. Something like MQEnvironment.UserID = "clientUser" and MQEnvironment.Password = "XXX". I am using the .NET client API and they dont have anything like what I mentioned even though the corresponding Java client API has it defined. Is there any other way this could be done while connecting to QueueManager using .NET client API. I also tried the properties Hashtable overload of the constructor (for MQQueueManager). But I am not sure what all keys this hash table would take. I tried few things like MCQ.User_ID_property etc. But they didnt make any difference. It is not mentioned any where else in the documentation too.
Thanks for your help,
Steve. |
|
Back to top |
|
 |
JasonE |
Posted: Thu Apr 29, 2004 1:07 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
No, on non-JAVA clients you generally cannot change the userid provided during the connect. It is always the signed on userid |
|
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
|
|
|
|