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 » Security Exits and feedback from receiver to sender

Post new topic  Reply to topic
 Security Exits and feedback from receiver to sender « View previous topic :: View next topic » 
Author Message
Olorin
PostPosted: Thu Oct 30, 2003 6:14 am    Post subject: Security Exits and feedback from receiver to sender Reply with quote

Newbie

Joined: 07 Jul 2003
Posts: 7

I've been scratching my head on this for long enough, and I haven't found a reply by searching the forums, so I hope saomeone can provide some help.

The problem (short version): how do I pass information from the "receiver" security exit back to the sender security exit ?

A longer description:
The situation I am working in is that of a client machine attempting to open a connection with a server machine (I say client and server, but they are basically a sender and a receiver). The client side security exit passes to the server side security exit a bunch of info, and the security exit on the server side performs some authentication/authorization logic to verify that the client can actually send messages to/read messages from the server. The info passed from the client security exit to the server security exit, in fact, include user ID, password, and other such things.

Now, in some cases all goes fine and the server side security exit will return an MQXCC_OK code to indicate that all is well, and the connection should be opened.

In other cases, though, something goes wrong (say a bad password). In this case the server side security exit returns an MAXCC_CLOSE_CHANNEL code. I would like to pass a string back to the client side security exit (such as "Bad ID" or "Bad Password" or one of a few others), and I have tried (in the server side security exit) to stick this string in either the agent buffer or the exit buffer. I specify ExitResponse2 = MQXR2_USE_AGENT_BUFFER (or USE_EXIT_BUFFER) as well.
However, the next step in the chain of events seems to be the client side security exit being invoked with MQXR_TERM, and, when logging the agent buffer and/or the exit buffer in that exit I get a zero-length buffer.

Suggestions?
Alternatives?

Thanks in advance,
F.O.R.
Back to top
View user's profile Send private message
anhnt
PostPosted: Tue Nov 04, 2003 6:55 pm    Post subject: Reply with quote

Acolyte

Joined: 03 Aug 2003
Posts: 54

Hi Olorin,

You wrote:
Quote:
I specify ExitResponse2 = MQXR2_USE_AGENT_BUFFER (or USE_EXIT_BUFFER)


I think you need add following sentense:

Quote:
pChlExParms->ExitResponse = MQXCC_SEND_SEC_MSG;


and you must be sure:you specify agBuf and dataLength parameters in parameter list of SecurityChannelExit function.

anhnt
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 » Security Exits and feedback from receiver to sender
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.