Because I do an update into radgroupreply but now I'm doing a "select" and save the result into a variable, like this:

REPLY_MESSAGE="$(mysql -Ns -h$HOST -u$USER -p$PASS -e "SELECT Value FROM radgroupreply WHERE Attribute='Reply-Message' AND GroupName='$GROUP_NAME'" $BD)"

Butt this varibale I can't escape the script. I follow the man of "exec echo" where says "Should we escape the envioronment variables?" and I introduce 3 arguments:

program = "/usr/local/freeradius/etc/raddb/pre_script.sh %{User-Name} %{Reply-Message} %{Session-Timeout}"

but the results keep into the script and I don't know how I could get it out.

In the past post, also I said that I'm trying to play with Exit-Program or Exit-Program-Wait. Is it possible?
For example, If I put "exit 2" (fail) or "exit 1" (reject), etc.

thanks


Ivan Kalik escribió:
My script sets into radgroupreply 2 differents values Session-Timeout or
Reply-Message, when the script or exec module is finished.
Then, in Post-Auth section I do the "update"

Why? Why are you writing them to the database and then trying to retrieve
them? Why don't you assign them to attributes in the script?

Ivan Kalik
Kalik Informatika ISP

-
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