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 » IBM MQ API Support » Wrong User Identity when inserting a message on the Bus

Post new topic  Reply to topic
 Wrong User Identity when inserting a message on the Bus « View previous topic :: View next topic » 
Author Message
advapi
PostPosted: Mon Oct 22, 2018 1:25 am    Post subject: Wrong User Identity when inserting a message on the Bus Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Oct 22, 2018 5:08 am    Post subject: Reply with quote

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
View user's profile Send private message
hughson
PostPosted: Tue Oct 23, 2018 5:53 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Tue Oct 23, 2018 7:08 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
RogerLacroix
PostPosted: Wed Oct 24, 2018 8:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
Location: London, ON Canada

bruce2359 wrote:
SO what?

SO == Stackoverflow.

https://stackoverflow.com/questions/52924929/strange-problem-with-authentication-on-ibmmq-it-takes-the-running-user-id

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Wed Oct 24, 2018 10:25 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

RogerLacroix wrote:
bruce2359 wrote:
SO what?

SO == Stackoverflow.

https://stackoverflow.com/questions/52924929/strange-problem-with-authentication-on-ibmmq-it-takes-the-running-user-id

Regards,
Roger Lacroix
Capitalware Inc.

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
View user's profile Send private message
Vitor
PostPosted: Wed Oct 24, 2018 10:37 am    Post subject: Reply with quote

Grand High Poobah

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

bruce2359 wrote:
RogerLacroix wrote:
bruce2359 wrote:
SO what?

SO == Stackoverflow.

https://stackoverflow.com/questions/52924929/strange-problem-with-authentication-on-ibmmq-it-takes-the-running-user-id

Regards,
Roger Lacroix
Capitalware Inc.

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Wrong User Identity when inserting a message on the Bus
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.