reference packet code in unlang?
Arran Cudbard-Bell
A.Cudbard-Bell at sussex.ac.uk
Tue Apr 22 14:33:42 CEST 2008
Stefan Winter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi list,
>
> we sometimes get Accounting-On/Off tickets that are not meant for us
> (don't ask... bugyy NASes).
> I have a filter criterion: the NAS sends in Acct-Session-Id a unique
> string. When it's meant for us it has a certain value, wehen not, the
> string is different.
> I would like to match the packets in unlang in preacct and ACK the
> packets while not actually processing them (empty accounting{} section).
>
> Using the following in preacct threw a parser error. Maybe I'm just
> blind. I don't see the syntax error:
>
> if (Acct-Status-Type == "Accounting-Off" && !(Acct-Session-Id =~
> /restena.*/)) update control {
> ~ Proxy-To-Realm := testrealm.lu
> ~ }
>
> (first and second line wrapped)
>
> I'm sort of lost...
if (Acct-Status-Type == "Accounting-Off" && !(Acct-Session-Id =~
/restena.*/)) update control {
~ Proxy-To-Realm := testrealm.lu
~ }
Arran
>
> Greetings,
>
> Stefan Winter
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.4-svn0 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
>
> iD8DBQFIDdpE+jm90f8eFWYRAgUkAJ9ivmuZk+W50wXkEV2PeMeSH/sJVgCfQBSO
> 6UK49D6t2Fk1UPagntYa10I=
> =CSEz
> -----END PGP SIGNATURE-----
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
--
Arran Cudbard-Bell (A.Cudbard-Bell at sussex.ac.uk)
Authentication, Authorisation and Accounting Officer
Infrastructure Services | ENG1 E1-1-08
University Of Sussex, Brighton
EXT:01273 873900 | INT: 3900
More information about the Freeradius-Users
mailing list