Exec remote command in Preprocess

Rafal Pilos rafal.pilos at gmail.com
Fri Feb 28 20:35:13 CET 2014


I want to make some additional checks under authorization.
I edited default file in preprocess section.
This is how I want to make it:


if (%{exec:/path/to/script.sh} == "some numbers"){
                                        update control {
                                        Auth-Type := "Accept"
            else {
                    update control {
                                         Auth-Type := "Reject"

However this doesn't work.
Debug shows:
Bare %{...} is invalid in condition at: %{exec:/path/to/script.sh} == "some
 What im doing wrong ?
Is there possibility to execute remote script in this place ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140228/cfe2a46a/attachment.html>

More information about the Freeradius-Users mailing list