Minor Fix to policy.d/operator-name
authorScott Armitage <s.p.armitage@lboro.ac.uk>
Wed, 12 Sep 2012 21:23:37 +0000 (23:23 +0200)
committerScott Armitage <s.p.armitage@lboro.ac.uk>
Wed, 12 Sep 2012 21:23:37 +0000 (23:23 +0200)
fixed Packet-Type unlang match

raddb/policy.d/operator-name

index 3909ccf..afd9961 100644 (file)
@@ -38,7 +38,7 @@ operator-name.authorize {
 # attribute identifying this site if the operator-name is found for this client
 #
 operator-name.pre-proxy {
-       if (Packet-Type == Access-Request && "%{client:Operator-Name}") {
+       if ("%{request:Packet-Type}" == "Access-Request" && "%{client:Operator-Name}") {
                update proxy-request {
                        Operator-Name := "%{client:Operator-Name}"
                }