Rejecting auth from a specific realm

tnt at kalik.net tnt at kalik.net
Wed Nov 25 01:28:48 CET 2009


> All I am trying to do is reject auth requests from a specific realm.
>
> http://wiki.freeradius.org/Operators
>>
>> I am not sure what are you trying to do. If you are trying to match
>> regex
>> then use a proper operator. And if you are trying to do an exact match
>> than right side should be a string not regex. And use just "Realm" on
>> the
>> left.
>>
>> So something like? This gives the same error.
>
> if (Realm == your.realm)  {
>     update control {
>         Auth-Type = Reject
>     }
> }
>
> Where is the syntax for flow control like 'if' documented?

man unlang

Ivan Kalik




More information about the Freeradius-Users mailing list