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 Security » Testing AMS Functionality ( Error 2035 )

Post new topic  Reply to topic
 Testing AMS Functionality ( Error 2035 ) « View previous topic :: View next topic » 
Author Message
yasaboy
PostPosted: Tue Jul 22, 2014 8:07 pm    Post subject: Testing AMS Functionality ( Error 2035 ) Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

Hi,

I'm just couple of days old with AMS and I want to test how to use the AMS functionality. So for now I have created alice an bob users and done according to the example.

my working environment

Code:
/x01/devXX

I have created bob an alice accounts in home directory given PUT message privilege on "TEST.Q1" to alice and GET privilage to Bob.
Code:

/home/alice
/home/bob


How can I now test whether alice can send messages to the "TEST.Q1". I ran a sample code which puts messages on "TEST.Q1" using my environment devXX and it gives error.

Code:
(RC2035): MQRC_NOT_AUTHORIZED


I know definitly I should change my user from devXX to alice

Please help. How to change user ID from code ? or should I be logging in using Alice and Bob to send and receive messages, which by the way I have no access by now.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jul 23, 2014 5:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Remember you need to also give bob and alice browse privileges to the policy queue and put privileges to the policy error queue....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
yasaboy
PostPosted: Wed Jul 23, 2014 7:23 pm    Post subject: Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

fjb_saper wrote:
Remember you need to also give bob and alice browse privileges to the policy queue and put privileges to the policy error queue....


Thanks for your reply. Here are the permissions set by me. All the necessary things are set here I guess.

Code:
/x01/devXX/bin>dspmqaut -m Test.QM -n Test.Q1 -t q -p bob
Entity bob has the following authorizations for object Test.Q1:
        get
/x01/devXX/bin>dspmqaut -m Test.QM -n Test.Q1 -t q -p alice
Entity alice has the following authorizations for object Test.Q1:
        put
/x01/devXX/bin>dspmqaut -m Test.QM -n SYSTEM.PROTECTION.POLICY.QUEUE -t q -p alice
Entity alice has the following authorizations for object SYSTEM.PROTECTION.POLICY.QUEUE:
        browse
/x01/devXX/bin>dspmqaut -m Test.QM -n SYSTEM.PROTECTION.POLICY.QUEUE -t q -p bob
Entity bob has the following authorizations for object SYSTEM.PROTECTION.POLICY.QUEUE:
        browse
/x01/devXX/bin>dspmqaut -m Test.QM -n SYSTEM.PROTECTION.ERROR.QUEUE -t q -p alice
Entity alice has the following authorizations for object SYSTEM.PROTECTION.ERROR.QUEUE:
        put
/x01/devXX/bin>dspmqaut -m Test.QM -n SYSTEM.PROTECTION.ERROR.QUEUE -t q -p bob
Entity bob has the following authorizations for object SYSTEM.PROTECTION.ERROR.QUEUE:
        put


The problem I'm facing is how to test this setup. Can I put messages by somehow using the user alice by my devXX environment ?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jul 24, 2014 4:33 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Yes that would be the next step. If you are using JMS you should also add +inq as a permission on all objects that need a permission and maybe +dsp.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Security » Testing AMS Functionality ( Error 2035 )
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.