Author |
Message
|
cynthia |
Posted: Wed Apr 05, 2006 7:14 am Post subject: Set up MQEnvironment "UserID" in WMQ 5.3 using .NE |
|
|
Newbie
Joined: 05 Apr 2006 Posts: 2
|
Hi,
I'm working on a project using WMQ 5.3 with .NET on Windows 2000. I have been using MQEnvironment.UserId and MQEnvironment.Password to set up authentication for connecting to MQ, but got error "MQEnvironment does not have definition for UserId". I guess MQEnvironment.UserId is only available in WMQ 6.0 but not 5.3. I also tried to set up environment variable MQ_USER_ID and MQ_PASSWORD, still did not work. Can somebody help me how to set up authentication on MQ 5.3 with .NET? Thanks very much for your helps. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 05, 2006 8:58 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You are always authenticated with the user that is running the program, and not with what is put into MQEnvironment.
EXCEPT in Java. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
cynthia |
Posted: Wed Apr 05, 2006 9:15 am Post subject: |
|
|
Newbie
Joined: 05 Apr 2006 Posts: 2
|
Thanks for your reply. So is there any way to set up authentication programly in .Net?
Thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 05, 2006 9:17 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You have to change what user is running your code. MQ itself does this by using DCOM.
Please go delete the other topic you just started, too. We don't like duplicate posters. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mvic |
Posted: Wed Apr 05, 2006 9:55 am Post subject: Re: Set up MQEnvironment "UserID" in WMQ 5.3 using |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
cynthia wrote: |
I have been using MQEnvironment.UserId and MQEnvironment.Password to set up authentication for connecting to MQ, but got error "MQEnvironment does not have definition for UserId". I guess MQEnvironment.UserId is only available in WMQ 6.0 but not 5.3. I also tried to set up environment variable MQ_USER_ID and MQ_PASSWORD, still did not work. Can somebody help me how to set up authentication on MQ 5.3 with .NET? Thanks very much for your helps. |
Try the URLs here : http://www.mqseries.net/phpBB2/viewtopic.php?p=129473#129473 |
|
Back to top |
|
 |
|