Minimal Exec Example
Herwin Weststrate
herwin at quarantainenet.nl
Mon Sep 25 13:43:22 CEST 2017
On 22-09-17 15:51, Alan DeKok wrote:
> On Sep 22, 2017, at 9:44 AM, Sky <skydiablo at gmx.net> wrote:
>>
>> hi there,
>>
>> im stuck in configure a simple "exec" solution. my site config looks
>> like this:
>>
>> //================ START ================
>> authorize{
>> # exec
>> update control {
>> Auth-Type := `/usr/bin/php -f /foo/bar/baz.php --username
>> '%{User-Name}' --password '%{User-Password}' --ip '%{Client-IP-Address}'`
>> }
>
> I would really recommend *not* running PHP on every request. It's very slow.
But still it appears to be something that many users want to use, this
isn't exactly the first time someone tries to shell out to run PHP. It
makes me wonder if there is an actual demand for a rlm_php module that
would embed it. And no, I'm not volunteering to write it.
--
Herwin Weststrate
More information about the Freeradius-Users
mailing list