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 » Username Pwd authentication

Post new topic  Reply to topic Goto page 1, 2  Next
 Username Pwd authentication « View previous topic :: View next topic » 
Author Message
dude1
PostPosted: Thu Mar 08, 2007 6:35 am    Post subject: Username Pwd authentication Reply with quote

Novice

Joined: 20 Feb 2007
Posts: 10

Hello guys...
I am trying to connect to a MQ on a different network.....

I have the Q manager name, channel name, IP address & port number...
all the necessary information....
I am given a user name and password which is set to the mqm group in the system where the Q's reside...

but when i try to access the Q i get 2035 error code... when run the same code on the system where the Q sits.. it works fine...

i guess the code is trying to get authenticated with my Windows user name and password ... (may be i dont know how to force a different username password..)

(I use MQ server 6.0 on windows.. and i am trying to connect using C++)

This is wat i do.... PrimaryChannel is a ImqChannel variable...

PrimaryChannel.setUserId("user");
PrimaryChannel.setPassword("pwd");

How am i supposed to specify the username and password explicitly to get authenticated...


Thanks in advance

Badri
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 08, 2007 6:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Have you considered searching here for "Username pwd"?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 08, 2007 6:41 am    Post subject: Reply with quote

Grand High Poobah

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

Or "client connection security" (or some similar combination of words)?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Mar 08, 2007 6:45 am    Post subject: Reply with quote

Guest




(Uh, oh. It looks like we're slipping back into sarcasm/irritation/annoyance style responses... Fight the urge.)
Back to top
jefflowrey
PostPosted: Thu Mar 08, 2007 6:49 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

bruce2359 wrote:
(Uh, oh. It looks like we're slipping back into sarcasm/irritation/annoyance style responses... Fight the urge.)


It's essentially a double-post.
http://www.mqseries.net/phpBB2/viewtopic.php?t=35215

I repeat my earlier answer.

With C or C++ clients, and anything based on those clients, the only user that can ever be presented to the queue manager for authorization at the time of connection is the logged on user.

Unless there's a security exit involved.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 08, 2007 7:02 am    Post subject: Reply with quote

Grand High Poobah

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

bruce2359 wrote:
(Uh, oh. It looks like we're slipping back into sarcasm/irritation/annoyance style responses... Fight the urge.)


I claim extenuating circumstances in the form of a newbie PM asking for "urgent" help - reading a message destructively off a queue. Also not the best time in the day job; dev team have suceeded in enriching ignorance to produce weapons-grade stupidity...

Consider my urges added to the list of things I'm fighting.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dude1
PostPosted: Thu Mar 08, 2007 7:03 am    Post subject: Reply with quote

Novice

Joined: 20 Feb 2007
Posts: 10

I know jeff...

I was the who posted that too... i wanted to continue on that thread... but thought of starting a new thread... because there some other problem discussed regarding code 2069 i guess. and i thouht people might get confused

How am I supposed to set MCAUser attribute through code... the only method i see for the ImqChannel regadring the user name and pwd was
setUserId and Password... which I tried to do...
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 08, 2007 7:05 am    Post subject: Reply with quote

Grand High Poobah

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

dude1 wrote:
How am I supposed to set MCAUser attribute through code


You're not - it's an administrative function. Speak to your friendly MQ administrator.

Or if you're on my site at the moment, your unfriendly sarcastic and growling slightly MQ administrator.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
dude1
PostPosted: Thu Mar 08, 2007 7:06 am    Post subject: Reply with quote

Novice

Joined: 20 Feb 2007
Posts: 10

"With C or C++ clients, and anything based on those clients, the only user that can ever be presented to the queue manager for authorization at the time of connection is the logged on user. "

sorry I dint c this

Hey but i know certain people do connect with user name and password ... they are in different network....but still they access the Q...

This fact just contradicts ur statement....


Thanks again
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 08, 2007 7:09 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can't change the MCAUser on the SVRCONN side from your client program.

I'll say it again. You can't do what you want to do with a C or C++ client without a security exit!



If you want to properly authorize your client applications, then you can either buy and implement a product, or you can implement a role-based security by using a combination of SSL and an MCAUser on the channel. You will ensure that only the right machines and right client applications can connect by being careful how you create and distribute certificates, and you will ensure that the users of a particular channel can only do certain things by setting a single, fixed MCAUser on the channel to a user that only has those needed rights.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
dude1
PostPosted: Thu Mar 08, 2007 7:10 am    Post subject: Reply with quote

Novice

Joined: 20 Feb 2007
Posts: 10

Hey Victor i dint mean to hurt u dude...
I never meant to leave any scarcastic remarks... I am new to MQ devp... and i am trying to get my some knowledge from you guys... to make my code work..

Pls dont mistake me...


Thanks for all your help
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 08, 2007 7:12 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

dude1 wrote:
"With C or C++ clients, and anything based on those clients, the only user that can ever be presented to the queue manager for authorization at the time of connection is the logged on user. "

sorry I dint c this

Hey but i know certain people do connect with user name and password ... they are in different network....but still they access the Q...

This fact just contradicts ur statement....


Then go ask those people how they did it!
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 08, 2007 7:13 am    Post subject: Reply with quote

Grand High Poobah

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

dude1 wrote:


This fact just contradicts ur statement....


At the risk of putting words in the mouth of the Grand Poobah, no it doesn't.

You can't present anything other than the userid / password of the logged on user. You can provide different user ids using a variety of different methods (e.g. channel exits).

Why should a user on a different network have a problem accessing the queues? They can either be authorised in their own right or have an MCAUser assigned to their channel for starters.....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 08, 2007 7:16 am    Post subject: Reply with quote

Grand High Poobah

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

dude1 wrote:
I never meant to leave any scarcastic remarks


Not you - me! I'm dumping sarcasm like toxic waste over the team here and it's leaking everywhere. I'm guessing you're not on my site or you'd know that (people are starting to avoid me - thank God!) so you should have more luck getting a MCAUser set up with your admin.

Consider yourself unmistaken. Except about the security thing, where I think you might be!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Michael Dag
PostPosted: Thu Mar 08, 2007 7:21 am    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Vitor wrote:
me! I'm dumping sarcasm like toxic waste over the team here and it's leaking everywhere. I'm guessing you're not on my site or you'd know that (people are starting to avoid me - thank God!)

sounds familiar... I guess there is a growing number of "Vitors" out there....
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ API Support » Username Pwd authentication
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.