> From: Ron Wahler > Sent: Wednesday, 3 September 2003 7:37 AM > How can I control Access-Accept or Access-Reject based on what is > returned > From the authUser.sh shell script ? I can have the shell script to > return 1 or 0 or what Ever to make it work but need an example of the > syntax. > > > exec my_exec_postauth { > wait = yes > program = "/usr/local/etc/raddb/authUser.sh" > input_pairs = reply > > }
Currently returning 1 from the shell script (or any non-0 value) will make the server send an Access-Reject, although it also sends a message along the lines of 'External Program Failed'. Suggestions for better behavior welcomed... Hmm. Maybe have the entry able to control what return codes mean what values, with a default of 0 = Access-Accept, and anything else being script failure... -- ========================================================= Paul "TBBle" Hampson Bubblesworth Pty Ltd (ABN: 51 095 284 361) [EMAIL PROTECTED] This is a one line proof...if we start sufficiently far to the left. -- Cambridge University Math Department --------------------------------------------------------- Random signature generator 3.0 by Paul "TBBle" Hampson ========================================================= - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html