Hi, according to unlang:
!* Delete all occurances of the named attribute, no matter what the value.
but when I want to use it like that: post-auth { Post-Auth-Type REJECT { update reply { Idle-Timeout !* 0 Session-Timeout !* 0 } } } but freeradius (2.1.7) does not seem to like it:
/etc/freeradius2//sites/ui.site.conf[205]: Parse error after "Idle-Timeout"
other operators work, e.g. ... update reply { Idle-Timeout -= 7200 Session-Timeout -= 86400 } ... but that's not handy... Regards, Jakob
Jakob Hirsch <jh@plonk.de> wrote:
according to unlang:
!* Delete all occurances of the named attribute, no matter what the value.
but when I want to use it like that:
post-auth { Post-Auth-Type REJECT { update reply { Idle-Timeout !* 0 Session-Timeout !* 0 } } }
but freeradius (2.1.7) does not seem to like it:
/etc/freeradius2//sites/ui.site.conf[205]: Parse error after "Idle-Timeout"
I get the same thing and kept meaning to file a bug report. I opted as a quick hack: ---- update reply { Blar -= "%{reply:Blar}" } ---- Cheers -- Alexander Clouter .sigmonster says: BOFH excuse #248: Too much radiation coming from the soil.
Alexander Clouter, 2009-11-13 13:03:
/etc/freeradius2//sites/ui.site.conf[205]: Parse error after "Idle-Timeout" I get the same thing and kept meaning to file a bug report. I opted as a quick hack:
update reply { Blar -= "%{reply:Blar}" }
Thanks, that's clever! Also thanks to Alan for the quick fix! The diff is small, so I'll patch that in.
participants (3)
-
Alan DeKok -
Alexander Clouter -
Jakob Hirsch