Title: Assinatura Padrao - Infomark / VirtualAge / Irapida
Thanx Alan,
it worked.
But now, I'd like to know if it's possible to pass MyAttribute (that is
in RadReply table) to my exec module that is executed from accounting
phase.
For example:
...
exec echo {
wait = yes
program =
Reginaldo Russinholi wrote:
But now, I'd like to know if it's possible to pass MyAttribute (that is
in RadReply table) to my exec module that is executed from accounting phase.
Yes. It's in the reply.
For example:
...
exec echo {
wait = yes
program =
Title: Assinatura Padrao - Infomark / VirtualAge / Irapida
Ok Alan,
I read "man unlang" and I discovered that I have to put "reply:" before
the name of my variable, so I put "%{reply:MyAttribute}" into my exec
module, but it didn't get the value of MyAttribute.
If I put it in "post-auth"
Reginaldo Russinholi wrote:
If I put it in post-auth section it works, but in accounting doesn't.
Accounting packets don't have any attributes in the reply.
Maybe you want to update the check items.
Alan DeKok.
-
List info/subscribe/unsubscribe? See
Thanx again Alan,
I've solved my problem using the sql module like this:
program = "/bin/echo %{sql:SELECT value FROM RadReply WHERE UserName
='%{User-Name}' and attribute ='MyAttribute'}"
Alan DeKok escreveu:
Reginaldo Russinholi wrote:
If I put it in "post-auth" section it
Title: Assinatura Padrao - Infomark / VirtualAge / Irapida
Hi all,
I'm using freeradius1.1.7 and I need to get an extra attribute (like
'MyAttribute') from the database and pass it to exec module like this:
...
exec echo {
wait = yes
program = "/bin/echo %{MyAttribute} %Z"
#input_pairs =
Reginaldo Russinholi wrote:
Hi all,
I'm using freeradius1.1.7 and I need to get an extra attribute (like
'MyAttribute') from the database and pass it to exec module like this:
Yes. You need to define it in a dictionary.
I tried to put MyAttribute into RadReply, but it didn't work.
I
7 matches
Mail list logo