I do not know what your fix is. But I think the fix would be to use 'NULL' as the default value for output_pairs, i.e. if output_pairs does not exist, set it to NULL.
I do not know if this breaks the condition when 'wait=yes', though. > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Paul > Hampson > Sent: Wednesday, September 24, 2003 9:17 PM > To: [EMAIL PROTECTED] > Subject: RE: The exec module > > > > From: Alex Chen > > Sent: Thursday, 25 September 2003 9:30 AM > > > When I define an 'exec'module like the following, the > server would not > > start. > > exec ext_perl { > > wait = no > > program = "${prefix}/bin/ext_perl" > > input_pairs = request > > #output_pairs = reply > > packet_type = Access-Accept > > } > > > > The error message I got was > > Module: Loaded exec > > exec: wait = no > > exec: program = "/usr/local/bin/ext_perl" > > exec: input_pairs = "request" > > exec: output_pairs = "reply" > > exec: packet_type = "Access-Accept" > > rlm_exec: Cannot read output pairs if wait=no > > Funnily enough, I just fixed this in CVS. If you don't want to get > the CVS version of rlm_exec.c (it'll also go into 0.9.2 I expect) > > you can use: > wait=yes > output_pairs=none > to achieve the same effect with added latency in packet replies. > > Otherwise, grab rlm_exec.c from CVS (or the whole CVS version > if you like) > and do exactly what you have above. > > > It seems that even if I comment out the 'output_pairs', the > server still > > uses "reply" as the > > value and thus fails to pass the logic check. > > > What kind of setting should I use so that the server can > just launch the > > exec and does not > > wait for it to return anything? Apparently comment out the > 'output_pair' did > > not do the trick. > > I also tried to set output_pairs="" or output_pair=null, > none worked. > > -- > ========================================================= > Paul "TBBle" Hampson > Bubblesworth Pty Ltd (ABN: 51 095 284 361) > [EMAIL PROTECTED] > > On a sidewalk near Portland State > University someone wrote `Trust Jesus', and > someone else wrote `But Cut the Cards'. > --------------------------------------------------------- > Random signature generator 3.0 by Paul "TBBle" Hampson > ========================================================= > > > - > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
