| Author | 
		  Message
		 | 
		
		  | vgobiraj | 
		  
		    
			  
				 Posted: Mon Mar 08, 2004 3:15 pm    Post subject: MQ authentication | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Mon Mar 08, 2004 4:07 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vgobiraj | 
		  
		    
			  
				 Posted: Tue Mar 09, 2004 11:38 am    Post subject: Thanks - What do I need to configure in the server | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vgobiraj | 
		  
		    
			  
				 Posted: Tue Mar 09, 2004 2:23 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Tue Mar 09, 2004 2:24 pm    Post subject: Re: Thanks - What do I need to configure in the server | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |