From: Scott Armitage Date: Wed, 12 Sep 2012 17:44:54 +0000 (+0200) Subject: Update raddb/policy.d/operator-name X-Git-Tag: release_3_0_0_beta1~1721^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=018c8d5680d6fc7443d22375a1a4df76dff13893;p=thirdparty%2Ffreeradius-server.git Update raddb/policy.d/operator-name proposed changes by aaron --- diff --git a/raddb/policy.d/operator-name b/raddb/policy.d/operator-name index 047cb542d47..3909ccfbae2 100644 --- a/raddb/policy.d/operator-name +++ b/raddb/policy.d/operator-name @@ -6,20 +6,29 @@ # oprator-name.authorize etc..) from the various config sections. # +# If you require that the Operator-Name be set +# for local clients then call the 'operator-name' policy +# in the authorize section of the virtual-server for your clients in clients.conf + +# to inject an Operator-Name whilst proxying, call the +# 'operator-name' policy in the pre-proxy section of the virtual server +# No need to call this if you have already enabled this in +# the authorize section. + # # We assume that clients can have the operator-name definition # in the client.conf, e.g. # client xxxx { # ... -# operator-name = 1your.domain +# Operator-Name = 1your.domain # } # If this parameter is found for a client, then we add # an Operator-Name attribute # operator-name.authorize { - if ( "%{client:operator-name}" ) { + if ( "%{client:Operator-Name}" ) { update request { - Operator-Name = "%{client:operator-name}" + Operator-Name = "%{client:Operator-Name}" } } } @@ -29,9 +38,9 @@ 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 (Packet-Type == Access-Request && "%{client:Operator-Name}") { update proxy-request { - Operator-Name := "%{client:operator-name}" + Operator-Name := "%{client:Operator-Name}" } } }