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 » General IBM MQ Support » MQ authentication

Post new topic  Reply to topic
 MQ authentication « View previous topic :: View next topic » 
Author Message
vgobiraj
PostPosted: Mon Mar 08, 2004 3:15 pm    Post subject: MQ authentication Reply with quote

Newbie

Joined: 08 Mar 2004
Posts: 3

I'm very new to MQSeries.

I have a basic question regarding MQ QueueManager authentication

I have a MQ Client Java program connecting to the queue manager I like
the client to be authenticated before it can put a message.

There are documents related to SSL but I'm not able to find any regarding
authentication.(like username/password)

Appreciate any pointers

Thanks
Gobiraj
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Mar 08, 2004 4:07 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to ensure that your java application sets the UserId when it connects.

By default, the Java MQ API does not populate the user field of the connection when it creates one. The Java API is the only API that does this, and this is because there is no simple way for the Java API to get the currently logged in user.

Look in the manual called "Using Java". For example, I find
Using Java wrote:
The user ID and password default to blanks. To specify a non-blank user ID or password, use the code:

MQEnvironment.userID = "uid"; // equivalent to env var MQ_USER_ID
MQEnvironment.password = "pwd"; // equivalent to env var MQ_PASSWORD
.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vgobiraj
PostPosted: Tue Mar 09, 2004 11:38 am    Post subject: Thanks - What do I need to configure in the server Reply with quote

Newbie

Joined: 08 Mar 2004
Posts: 3

Thanks for ur valid input.

If I set a user name and password in the client how it
will be validated.

I like to know how to configure the valid users/password for a queue
or a queue manager


Thanks
Gobiraj
Back to top
View user's profile Send private message
vgobiraj
PostPosted: Tue Mar 09, 2004 2:23 pm    Post subject: Reply with quote

Newbie

Joined: 08 Mar 2004
Posts: 3

I tried the following

Even though I say +none for user "try" it still says that try is authorized
for all options.

Thanks for any help

setmqaut -m XXXX.queue.manager -n LABMQ.IN -t q -p try +none
The setmqaut command completed successfully.


dspmqaut -m XXXX.queue.manager -n LABMQ.IN -t queue -p try
Entity try has the following authorizations for object LABMQ.IN:
get
browse
put
inq
set
crt
dlt
chg
dsp
passid
passall
setid
setall
clr
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 09, 2004 2:24 pm    Post subject: Re: Thanks - What do I need to configure in the server Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

vgobiraj wrote:
Thanks for ur valid input.

If I set a user name and password in the client how it
will be validated.

Did you read the rest of the section in the Using Java manual, that I had posted a quote from?

vgobiraj wrote:
I like to know how to configure the valid users/password for a queue
or a queue manager


The manual called "Security" should talk about this.
_________________
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 » General IBM MQ Support » MQ 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.