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 Java / JMS » Server Connection Channel authenticating C# client

Post new topic  Reply to topic
 Server Connection Channel authenticating C# client « View previous topic :: View next topic » 
Author Message
ravip
PostPosted: Mon Aug 08, 2005 1:34 pm    Post subject: Server Connection Channel authenticating C# client Reply with quote

Novice

Joined: 22 Feb 2005
Posts: 23

We have a server connection channel with the MCAUSER set to empty. The C# client is trying to connect to this MQ with a userid that has not been defined and granted permissions to connect on the server. The weird thing is the client is getting authenticated and is able to connect successfully. What I know from the ServerConnection channels is that if its blank and you pass in a userId, it'll try to authenticate that userId and not allow that user to connect, but in this case I'm not sure of this weird behavior. The userId which the C# client is passing is in the format "mqseries user", can anyone explain this weird behaviour ? MQ version is 5.3 and CSD09
Back to top
View user's profile Send private message
vennela
PostPosted: Mon Aug 08, 2005 1:39 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

What is that you are trying to do.Do you want your application to work or do you want your app not to work?

How does your code look like.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RogerLacroix
PostPosted: Mon Aug 08, 2005 8:09 pm    Post subject: Reply with quote

Jedi Knight

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

Ah Windows users,

Quote:
The userId which the C# client is passing is in the format "mqseries user",

You cannot set a UserID in C# like Java. C# uses the standard MQ client libraries (or binding mode), hence, the MQ Client library (or binding mode) uses the logon UserID.

Therefore, if you are logged on on as "Administrator" and you run the app, it connects and gets & puts under "Administrator" UserID. The Administrator account is another backdoor to connect to a Windows queue manager.

If you put a message with the C#, then use MQ Explorer to view the message's MQMD, what value is in the UserID field on the Content tab?

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
ravip
PostPosted: Tue Aug 09, 2005 12:41 pm    Post subject: Reply with quote

Novice

Joined: 22 Feb 2005
Posts: 23

Thanks for the responses....what I wanted to do is to authenticate the users first in mqseries since for C# its not possible to set the userId. The problem is that the userId works in DEV without me granting permissions for the same on MQ and does'nt work in our SIT env, now not working on SIT is something which I can buy since w did not grant permissions to that particular user but how come the same user works in DEV is the million dollar question. Also I did see the userId in the MQMD and its not defined on our DEV machine. Any other thoughts?
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 Java / JMS » Server Connection Channel authenticating C# client
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.