|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Wrong User Identity when inserting a message on the Bus |
« View previous topic :: View next topic » |
Author |
Message
|
advapi |
Posted: Mon Oct 22, 2018 1:25 am Post subject: Wrong User Identity when inserting a message on the Bus |
|
|
Newbie
Joined: 22 Oct 2018 Posts: 1
|
Hello,
I've got some issues with the user that's performing the insert. I premit I'm new to IBM MQ so please excuse me if I pull a stupid request but I've looked over the net without finding a solution.
I'm in the following case. Have a domain account from which I execute the application and I've set an username on the domain that's responsible to act with the queue.
There's the snippet of code I use to create the queue manager
Code: |
private static readonly Lazy<MQQueueManager> lazy =
new Lazy<MQQueueManager>(() =>
{
var properties = new Hashtable();
var container = ContainerWrapper.Container;
IConfiguration configuration = container.GetInstance<IConfiguration>();
properties.Add(MQC.HOST_NAME_PROPERTY, configuration.GetValue<string>("HOST_NAME_PROPERTY"));
properties.Add(MQC.PORT_PROPERTY, configuration.GetValue<int>("PORT_PROPERTY"));
properties.Add(MQC.USER_ID_PROPERTY, configuration.GetValue<string>("USER_ID_PROPERTY"));
properties.Add(MQC.PASSWORD_PROPERTY, configuration.GetValue<string>("PASSWORD_PROPERTY"));
properties.Add(MQC.CHANNEL_PROPERTY, configuration.GetValue<string>("CHANNEL_PROPERTY"));
//properties.Add(MQC.MQCSP_AUTH_USER_ID_AND_PWD, true);
//properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_MANAGED);
//properties.Add(MQC.USE_MQCSP_AUTHENTICATION_PROPERTY, true);
MQQueueManager queueManager =
new MQQueueManager(configuration.GetValue<string>("QUEUE_MANAGER_NAME"), properties);
return queueManager;
});
|
the userid is "sys.ibmmq.test",if I don't pass such user I got a 2035 error
When the message is sent on the queue I got Axxxxxxx that's my primary domain user. What's wrong? what have I to set in order to authenticate and to act as sys.ibmmq.test ?
Thanks[/code] |
|
Back to top |
|
 |
Vitor |
Posted: Mon Oct 22, 2018 5:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Does the domain user have permission within MQ to use a different id on a message? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
hughson |
Posted: Tue Oct 23, 2018 5:53 pm Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
See your question on SO for an answer _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Oct 23, 2018 7:08 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
SO what? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Oct 24, 2018 8:28 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Oct 24, 2018 10:25 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Ah, a mini TLA - an MTLA. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 24, 2018 10:37 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
bruce2359 wrote: |
Ah, a mini TLA - an MTLA. |
Which is an FLA.
Which is a TLA. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|