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 Exit

Post new topic  Reply to topic
 Security Exit « View previous topic :: View next topic » 
Author Message
vsk
PostPosted: Mon Jun 23, 2003 7:25 am    Post subject: Security Exit Reply with quote

Novice

Joined: 25 Apr 2003
Posts: 24

Hi,
I have implemented a security exit on one of my channel. In the security exit I am reading a userid and password required for connection from a file. Is there any way that I can pass the file name as an argument to the securty exit program and if "yes" how do I pass the argument and how do I define that in the "define channel .... scyexit(???)".

I dont want to hardcode the filename in the security exit as I can be using the same exit for a different channel.

Thanks,
VSK
Back to top
View user's profile Send private message
vsk
PostPosted: Mon Jun 23, 2003 12:16 pm    Post subject: can anyone please reply on this post Reply with quote

Novice

Joined: 25 Apr 2003
Posts: 24

Post is as above
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jun 23, 2003 12:42 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You could use an environment variable.
Back to top
View user's profile Send private message
vsk
PostPosted: Tue Jun 24, 2003 4:22 am    Post subject: Reply with quote

Novice

Joined: 25 Apr 2003
Posts: 24

I have 2 channels which communicate with 2 different entities. The username and password provided by them is different. I am storing this username and password in a file and soring that filename in a environment variable. Now what I need is whether I can pass this environment variable as an argument to this security exit program and if so how do I do define it when creating the channel definition.

Currently my channel definition is as follows

define channel(brain_eds.C1) chltype(SDR)
TRPTYPE(TCP) +
CONNAME('ip(port)') +
DESCR('Sender channel ') +
XMITQ(eds) +
CONVERT(YES) +
SCYEXIT('channelexit(MQMDH001)') +
SENDEXIT('channelexit(MQMDH001)') +
DISCINT(600) REPLACE

where "channelexit" is the c executable and "MQMDH001" is the function.
Now I want to know how can I pass the argument(environment variable) to this channel definition so that the program reads appropriate password file depending upon the env variable passed.

Thanks,
VSK
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 Exit
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.