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 » Change user

Post new topic  Reply to topic
 Change user « View previous topic :: View next topic » 
Author Message
fcotait
PostPosted: Mon Nov 03, 2003 10:08 am    Post subject: Change user Reply with quote

Acolyte

Joined: 28 Feb 2002
Posts: 63
Location: Sao Paulo - Brazil

Hi all,

I need to change my user when I put a message to prevent 2035 error. I don´t want to create a user for every system (7 Win and 2 AIX all clients connection) in my server (AS/400), because all the systems use different users

I saw the option MQPMO_ALTERNATE_USER_AUTHORITY but this works only with MQPUT1 (I want to use MQPUT)

Any Idea ?
_________________
Filipe Cotait
IBM Certified System Administrator - WebSphere MQ
IBM Certified Specialist - MQSeries, WebSphere MQ Integrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
mqonnet
PostPosted: Mon Nov 03, 2003 11:03 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Hmmm... Why do you say it wouldnt work with MQPUT. QM has no way of distinguishing what api call(MQPUT1 or MQPUT) would be made if you set options to MQPMO_ALTERNATE_USER_AUTHORITY. :).

You should be able to use it.

What is there error you are getting and on what api call. Try and investigate that, or post it here.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fcotait
PostPosted: Mon Nov 03, 2003 11:40 am    Post subject: Reply with quote

Acolyte

Joined: 28 Feb 2002
Posts: 63
Location: Sao Paulo - Brazil

About MQPUT/MQPUT1 with MQPMO_ALTERNATE_USER_AUTHORITY: See Application Programming Reference, Part 1, Chapter 14. (I thought like you, but...)

I tried to use MQPMO_ALTERNATE_USER_AUTHORITY with MQPUT and the manual was correct (error 2046)

If I really can´t use MQPMO_ALTERNATE_USER_AUTHORITY I need to find another way to change my user when I put a message

Thanks
_________________
Filipe Cotait
IBM Certified System Administrator - WebSphere MQ
IBM Certified Specialist - MQSeries, WebSphere MQ Integrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
fcotait
PostPosted: Wed Nov 05, 2003 6:27 am    Post subject: Reply with quote

Acolyte

Joined: 28 Feb 2002
Posts: 63
Location: Sao Paulo - Brazil

To alter the user I used the options MQOO_SET_IDENTITY_CONTEXT (open) and MQPMO_SET_IDENTITY_CONTEXT (put).

It works, but I have a new question !

I put an invalid user in my message and the MQ accepted without giving the error 2035. Is right ?

Thanks
_________________
Filipe Cotait
IBM Certified System Administrator - WebSphere MQ
IBM Certified Specialist - MQSeries, WebSphere MQ Integrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Change user
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.