| Author | 
		  Message
		 | 
		
		  | Rls65 | 
		  
		    
			  
				 Posted: Thu Jan 29, 2004 5:54 am    Post subject: Need help regard error 2035 and Userid | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 29 Jan 2004 Posts: 7
  
  | 
		  
		    
			  
				Hi,
 
 
I need some C# .NET samples of how to connect to a remote Queue manager who only accepts a scpecial userid.
 
 
The envoriment is following:
 
 
My program is running on a Windows 2000 enviroment with MQ Series 5.3 client (CSD05) installed. The software is connecting to a remote MQ Series queue manager located on an IBM OS/390. The MQ Series queue manager only allows a special UserID to connect.
 
 
If I logon on my Windows machine with that account name the program connects correctly but when I logon with another account name I get Error 2035 (Not authorized).
 
 
There are a lot of messages regarding this issue but I do not understand how I can set a UserID in my software and then connect to the Queue manager.
 
 
Could somebody please explain this to me and if possible give me an example in C# of how to solve this problem.
 
Someone mentioned QMCD and AlternateUserID but I cant find out how this works.
 
 
 
Please HELP!!!!!
 
 
         | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqonnet | 
		  
		    
			  
				 Posted: Thu Jan 29, 2004 6:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa. 
  | 
		  
		    
			  
				"If I logon on my Windows machine with that account name the program connects correctly but when I logon with another account name I get Error 2035 (Not authorized). "
 
 
That's because you dont have a principal defined with the logon id of the other account on the remote system.  It is as simple as creating a user with the same name(including case) on Os/390, if that is what you are trying to access.
 
 
As for Alternateuserid, you could use it by specifying the userid of your choice in the open itself.
 
 
Cheers
 
Kumar | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Rls65 | 
		  
		    
			  
				 Posted: Thu Jan 29, 2004 6:12 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 29 Jan 2004 Posts: 7
  
  | 
		  
		    
			  
				I know that I could add another userid on the IBM OS/390 but we would like to avoid to add a lot of different userids on the IBM OS/390.
 
 
Thats why I would like to add a static userID in my application so we don't have to maintain the userID list on the IBM side.
 
 
Any ideas about how to set a userID when connecting to a remote Queue Manager???????
 
 
   | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqonnet | 
		  
		    
			  
				 Posted: Thu Jan 29, 2004 6:18 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand Master
 
 Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa. 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Rls65 | 
		  
		    
			  
				 Posted: Thu Jan 29, 2004 7:46 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 29 Jan 2004 Posts: 7
  
  | 
		  
		    
			  
				Thanks looked at the link but still do not understand how to solve the problem in C#.
 
How do I access the AlternateUserID without creating a new instance of MQQueueManager??
 
 
Plzzzz HELP!!! Need an example in C#. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |