how to output that attribute value as raw data?
Hi. I was using freeradus-2.1.10 as radius home server. I want to output log file that attribute value as raw data. For example, NOT "%{Acct-Terminate-Cause} -> User-Request" BUT "%{Acct-Terminate -Cause} -> 1". Then, I edited dictionary.rfc2866 like this. ---edited #VALUE Acct-Terminate-Cause User-Request 1 --------------------------------------------- The output became "%{Acct-Terminate-Cause} -> 1", and it became a hoped output. However, default setting has become illegal. ---illegal thing if(Acct-Terminate-Cause == User-Request){ sql } --------------------------------------------- Please teach the way of the setting. Thanks for your help. ichiro tanaka
ichiro tanaka wrote:
I was using freeradus-2.1.10 as radius home server.
I want to output log file that attribute value as raw data. For example, NOT "%{Acct-Terminate-Cause} -> User-Request" BUT "%{Acct-Terminate -Cause} -> 1".
This is documented. $ man unlang See %{Attribute‐Name#} Alan DeKok.
thanks a lot Alan. OH, I see. thanks! I've tried that beoame a "%{Acct-Status-Type#} -> 1". But, "%{Packet-Type#} -> ". (%{Packet-Type} -> Access-Accept) Packet-Type's type is INTEGER. Is freeradius internal attributes off the subject? Thanks for your help. ichiro tanaka
This is documented.
$ man unlang
See
%{Attribute‐Name#}
Alan DeKok.
Hi.
I was using freeradus-2.1.10 as radius home server.
I want to output log file that attribute value as raw data. For example, NOT "%{Acct-Terminate-Cause} -> User-Request" BUT "%{Acct- Terminate -Cause} -> 1".
Then, I edited dictionary.rfc2866 like this. ---edited #VALUE Acct-Terminate-Cause User-Request 1 ---------------------------------------------
The output became "%{Acct-Terminate-Cause} -> 1", and it became a hoped output. However, default setting has become illegal. ---illegal thing if(Acct-Terminate-Cause == User-Request){ sql } ---------------------------------------------
Please teach the way of the setting.
Thanks for your help.
ichiro tanaka
ichiro tanaka wrote:
I've tried that beoame a "%{Acct-Status-Type#} -> 1". But, "%{Packet-Type#} -> ". (%{Packet-Type} -> Access-Accept)
Packet-Type's type is INTEGER. Is freeradius internal attributes off the subject?
Unfortunately, it doesn't work for Packet-Type. Maybe in a future release. Alan DeKok.
participants (2)
-
Alan DeKok -
ichiro tanaka