unlang: matching for 'Access-Accept'
Hi Guys How would I match for the packet type ie 'Access-Accept' in unlang Mike
How would I match for the packet type ie 'Access-Accept' in unlang
Answers to questions like this can be found examining dictionary.freeradius.internal. These attributes are mostly on control list. So it should be: if(control:Packet-Type == "Access-Accept) { ... Ivan Kalik Kalik Informatika ISP
Ivan Kalik wrote:
How would I match for the packet type ie 'Access-Accept' in unlang
Answers to questions like this can be found examining dictionary.freeradius.internal. These attributes are mostly on control list. So it should be:
if(control:Packet-Type == "Access-Accept) { ...
Ivan Kalik Kalik Informatika ISP
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi Ivan Did not know that this information was available there. Thanks. There does seem to be a problem, the %control:Packet-Type does not seem to expand to a value. rad_recv: Access-Accept packet from host 118.67.xxx.xxx port 1812, id=10, length=25 Proxy-State = 0x313534 +- entering group post-proxy {...} ........ ++? if (control:Packet-Type == "Access-Accept") expand: %{control:Packet-Type} -> ? Evaluating (control:Packet-Type == "Access-Accept") -> FALSE ++? if (control:Packet-Type == "Access-Accept") -> FALSE ......... Could version 2.1.4 have a bug in this area ? Mike
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
There does seem to be a problem, the %control:Packet-Type does not seem to expand to a value.
rad_recv: Access-Accept packet from host 118.67.xxx.xxx port 1812, id=10, length=25 Proxy-State = 0x313534 +- entering group post-proxy {...} ........ ++? if (control:Packet-Type == "Access-Accept") expand: %{control:Packet-Type} -> ? Evaluating (control:Packet-Type == "Access-Accept") -> FALSE ++? if (control:Packet-Type == "Access-Accept") -> FALSE .........
Could version 2.1.4 have a bug in this area ?
No. Wrong list. I think it's something like Proxy-Reply:Packet-Type, check man unlang for details. You didn't specify you were wanting to match a Proxied Accept in your original post. - -Arran - -- Arran Cudbard-Bell <A.Cudbard-Bell@sussex.ac.uk>, Systems Administrator (AAA), Infrastructure Services (IT Services), E1-1-08, Engineering 1, University Of Sussex, Brighton, BN1 9QT DDI+FAX: +44 1273 873900 | INT: 3900 GPG: 86FF A285 1AA1 EE40 D228 7C2E 71A9 25BB 1E68 54A2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqX178ACgkQcaklux5oVKIFVwCfaCG/gVSHsMwoFeimW6qxKVPI Q6IAn1AmkSdGfXuUNyKjZamoGVL256pz =CYgC -----END PGP SIGNATURE-----
participants (3)
-
Arran Cudbard-Bell -
Ivan Kalik -
Mike O'Connor