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 » MQEnvironment.userID= : USELESS ??

Post new topic  Reply to topic
 MQEnvironment.userID= : USELESS ?? « View previous topic :: View next topic » 
Author Message
In_love_with_MQ
PostPosted: Fri Mar 24, 2006 3:35 am    Post subject: MQEnvironment.userID= : USELESS ?? Reply with quote

Acolyte

Joined: 10 Jul 2005
Posts: 70

Hi ,

I am using a program in client mode .

I am trying to set the user id

MQEnvironment.userID= "xxxxxx";

But i set it or not the program is GETTING CONNECTED .

How can i pass the userid and password .

Since i am using SVRCONN channel . Anybody from any system can connect to my QM and is a security risk .

How to achieve this ?
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 24, 2006 3:50 am    Post subject: Reply with quote

Grand High Poobah

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

Have you seen this one:

http://www.mqseries.net/phpBB2/viewtopic.php?t=28329

When you say you're using SVRCONN, presumably you mean SYSTEM.DEF.SVRCONN? Are you able to define new one(s)?

There are a number of ways such access can be controlled; have a look at:

http://www.mqseries.net/phpBB2/viewtopic.php?t=27760

(That's not the only discussion of the subject in here, just the clearest & most relevant to your situation IMHO. I offer it without predudice or warrenty).

Client's don't pose that much of a risk with proper planning, organisation & methodology. I refer of course to applications, not humans......
_________________
Honesty is the best policy.
Insanity is the best defence.


Last edited by Vitor on Fri Mar 24, 2006 4:26 am; edited 1 time in total
Back to top
View user's profile Send private message
In_love_with_MQ
PostPosted: Fri Mar 24, 2006 4:11 am    Post subject: any SIMPLER waysthan exits Reply with quote

Acolyte

Joined: 10 Jul 2005
Posts: 70

HI ,

Does it mean that writing exits is the only way to provide security on a SVRCONN CHL ...

Is there any default options other than having a exit ?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Mar 24, 2006 4:16 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

In_love_with_MQ wrote:
Does it mean that writing exits is the only way to provide security on a SVRCONN CHL ...


NO. It means that you have to know and understand how MQ Security works, and use normal mechanisms to secure your programs that include "run your code as the correct user".

Also, CapitalWare sells an exit that can help with security. So you don't have to write one.

Also, one can use SSL to secure all of one's channels.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Mar 24, 2006 4:29 am    Post subject: Reply with quote

Grand High Poobah

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

Quote:
Does it mean that writing exits is the only way to provide security on a SVRCONN CHL ...


That certainly wasn't what I was driving at, and I apologise if I was in any way misleading. There are a number of strategies that can be employed, especially if one avoids the default channel.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
In_love_with_MQ
PostPosted: Fri Mar 24, 2006 5:17 am    Post subject: Reply with quote

Acolyte

Joined: 10 Jul 2005
Posts: 70

hI jeff,

a) What do u mean by running the code with correct user .

In my java code :
MQEnvironment.userid = "john"
MQEnvironment.password = "password123"


User John is on the machine where my SVRCONN channel exists and his password is correct and is what i pass .

Then too this useid and password is not taken into account
Then what does it mean by passing correct user id ?


hI vitor ,

I am not using the default svrconn . I have defined a channel called JAVA.CHANNEL and using them . Can u please elaborate the multiple ways you suggested ? .

I want that only a valid clinet to access my channel using a userid and password .

We do not want to use SSL and Exits . So is there any poosible ways .

If i set the MCAUSER , then everybody can take advantage who ever knows the channel name ???

Then what else is ur ways u suggested .
Back to top
View user's profile Send private message
mvic
PostPosted: Fri Mar 24, 2006 5:34 am    Post subject: Re: MQEnvironment.userID= : USELESS ?? Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

In_love_with_MQ wrote:
How can i pass the userid and password

Try the URLs here : http://www.mqseries.net/phpBB2/viewtopic.php?p=129473#129473
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat Mar 25, 2006 5:58 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can put the machine behind a firewall and ensure that only the right machines can establish network connections to the listener port.
_________________
I am *not* the model of the modern major general.
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 » MQEnvironment.userID= : USELESS ??
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.