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 Discussion » Putting messages on a remote queue

Post new topic  Reply to topic
 Putting messages on a remote queue « View previous topic :: View next topic » 
Author Message
wskibum
PostPosted: Thu Feb 24, 2011 8:59 am    Post subject: Putting messages on a remote queue Reply with quote

Apprentice

Joined: 03 Jul 2008
Posts: 38
Location: Northern California

Linux MQ v7.0
I am trying to grant permissions to a remote Linux user to put messages on a queue. I have created that user locally on the MQ server and granted permissions for that user to connect.

setmqaut -m QMD -t qmgr -p connect +connect +inq +dsp
setmqaut -m QMD -t q -n DELETE.PROFILE -p connect +put +browse +inq

refreshed security

the remote user then sets the environment on their Linux system

export MQSERVER=INC.TO.MQ/'sf550-db4(1414)'
/opt/mqm/samp/bin/amqsput DELETE.PROFILE QMD

I get

Sample AMQSPUT0 start
MQCONN ended with reason code 2035

As the mqm user on the remote system it works fine.

What am I doing wrong?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 24, 2011 9:06 am    Post subject: Re: Putting messages on a remote queue Reply with quote

Grand High Poobah

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

wskibum wrote:
the remote user then sets the environment on their Linux system

export MQSERVER=INC.TO.MQ/'sf550-db4(1414)'


I'm surprised it works at all; I'd have expected

export MQSERVER=INC.TO.MQ/TCP/'sf550-db4(1414)'

but since

wskibum wrote:
/opt/mqm/samp/bin/amqsput DELETE.PROFILE QMD


is the binding version of the binding version of the amqsput utility not amqsputc that would be using the MQSERVER variable maybe that's not so surprising.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 24, 2011 9:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why are you using -p with setmqaut on unix?
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 24, 2011 9:11 am    Post subject: Re: Putting messages on a remote queue Reply with quote

Grand High Poobah

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

wskibum wrote:
What am I doing wrong?


Assuming my previous points are typos in your post:

wskibum wrote:
setmqaut -m QMD -t qmgr -p connect +connect +inq +dsp
setmqaut -m QMD -t q -n DELETE.PROFILE -p connect +put +browse +inq


You can't use principle names on Linux, only groups.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Feb 24, 2011 9:14 am    Post subject: Re: Putting messages on a remote queue Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
You can't use principle names on Linux, only groups.

You *can*, but the results are not usually what is expected.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Feb 24, 2011 9:17 am    Post subject: Re: Putting messages on a remote queue Reply with quote

Grand High Poobah

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

[quote="mqjeff"]
Vitor wrote:
You can't use principle names on Linux, only groups.


I am rightly corrected.

mqjeff wrote:
You *can*, but the results are not usually what is expected.


As the OP has found.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
wskibum
PostPosted: Thu Feb 24, 2011 9:24 am    Post subject: Reply with quote

Apprentice

Joined: 03 Jul 2008
Posts: 38
Location: Northern California

Yes, it was a typo. Sorry.

So I tried like this and got the same error


setmqaut -m QMD -t qmgr -q connect +connect +inq +dsp
setmqaut -m QMD -t q -n DELETE.PROFILE -q connect +put +browse +inq
Back to top
View user's profile Send private message
wskibum
PostPosted: Thu Feb 24, 2011 9:34 am    Post subject: Reply with quote

Apprentice

Joined: 03 Jul 2008
Posts: 38
Location: Northern California

As the connect user on the MQ server the command works fine.

Just something funky going on from a remote box.
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Feb 24, 2011 9:46 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

When you set the MCAUSER attribute in the channel did you quote it, e.g. MCAUSER('username') ?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
wskibum
PostPosted: Thu Feb 24, 2011 9:48 am    Post subject: Reply with quote

Apprentice

Joined: 03 Jul 2008
Posts: 38
Location: Northern California

Yup
Back to top
View user's profile Send private message
wskibum
PostPosted: Thu Feb 24, 2011 10:00 pm    Post subject: Reply with quote

Apprentice

Joined: 03 Jul 2008
Posts: 38
Location: Northern California

Thank guy's, I was just tired I guess.
I really appreciate all the help

This works
setmqaut -m QMD -t qmgr -g connect +connect +inq +dsp
setmqaut -m QMD -t q -n DELETE.PROFILE -g connect +put +browse +inq

export 'MQSERVER=INC.TO.MQ/tcp/192.168.68.166(1414)'
/opt/mqm/samp/bin/amqsputc DELETE.PROFILE QMD

Sample AMQSPUT0 start
target queue is DELETE.PROFILE
test access

Sample AMQSPUT0 end
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 Discussion » Putting messages on a remote queue
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.