Seqfault with multiple

tnt at kalik.net tnt at kalik.net
Wed Mar 25 01:53:28 CET 2009


>Hello to Alan and the rest of the list. I wanted to report this to the
>bug tracker but it appears to be down right now so I am sending it to
>the list.
>
>I had a situation where I needed to remove all of the attributes from a
>reply except for Service-Type to one specific client. Unlang seemed to
>be perfect for this. It should be as simple as the following.
>
>if (Client-IP-Address == "192.168.10.20") {
>    update reply {
>        Framed-Protocol == ''
>        Framed-IP-Address == 0.0.0.0
>        Framed-IP-Netmask == 0.0.0.0
>        Idle-Timeout == 999
>        Session-Timeout == 999
>        Port-Limit == 999
>        Cisco-AVPair == ''
>        Service-Type := Authenticate-Only
>    }
>}
>

Read man unlang again. See what does == do. Perhaps you want:

if (Client-IP-Address == "192.168.10.20") {
     update reply {
          Service-Type == Authenticate-Only
     }
}

Or you want to use -= on multiple attributes.

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list