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.
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
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 ?
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