Unlang issue

Phil Mayers p.mayers at imperial.ac.uk
Thu Jul 28 17:31:39 CEST 2011


On 28/07/11 16:12, Garber, Neal wrote:
> I’m running FR 2.1.6 (I know - I plan to upgrade later this year). Is
> there anything wrong syntactically with the following code or is this a
> bug that was fixed since 2.1.6?
> if (Client-IP-Address == "172.20.16.28" || Client-IP-Address ==
> "172.20.204.10")) {
> update request {
> Huntgroup-Name := "GlobalRoaming"
> }

Try:

if ((Client-IP-Address == x) || (Client-IP-Address == y)) {
}

> }
> #
> # If NAS is an autonomous AP, get SSID from Cisco-AVPair
> #
> if (Huntgroup-Name == "EEProdAP" || \
> Huntgroup-Name == "EETestAP") {

Again; group the sub-conditions.



More information about the Freeradius-Users mailing list