I tried this one earlier ....
Non-zero exit code seems to return an "Exec module failed" message and then does not seem a valid reponse to the Radius client.


Exec-Program: returned: 255
rlm_exec (getstatus): External script failed

In this case getstatus was a simple shell script that did nothing but exit 255. I would prefer to exit with a valid radius response including a Reply-Message.


Thanks,


-Rob



At 12:34 PM 11/20/2003 -0600, you wrote:
At 12:28 PM 11/20/2003, Rob Genovesi wrote:
Hi All,

I've been searching for an answer to this and haven't found one yet - can someone please help me out?

FreeRadius 0.9.2 - what's the proper way to reject a user after doing an exec?

<snip>


What should the getstatus exec return to reject the user if custom checks determine the user should not be allowed on?

I believe a non-zero exit value of the exec'ed program will trigger a reject.

-Chris

--
   \\\|||///  \          StarNet Inc.      \         Chris Parker
   \ ~   ~ /   \       WX *is* Wireless!    \   Director, Engineering
   | @   @ |    \   http://www.starnetwx.net \      (847) 963-0116
oOo---(_)---oOo--\------------------------------------------------------
                  \ Wholesale Internet Services - http://www.megapop.net



- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to