Thanks a lot for your reply.

Yes i got it working. However one more question :

what is the operator used to check if the value is empty ?

if(control:Calling-Station-Id == ""){
        reject
    }

*not working for above

So i tried to make sure if the user LDAP attribute for CallingStationID was
not set, reject it.

Thanks
Danny

On Thu, Mar 14, 2013 at 1:52 PM, Fajar A. Nugraha <[email protected]> wrote:

> On Thu, Mar 14, 2013 at 4:44 PM, Danny Kurniawan <
> [email protected]> wrote:
>
>>     if (control:Calling-Station-Id != "%{Calling-Station-Id"})
>>     {
>>         reject
>>     }
>>
>>
> IIRC the parser is picky on where the curly braces are located. Look at
> Alan's example again, and see "man unlang" for "if" block.
>
> --
> Fajar
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>



-- 
Best Regards,
Danny
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to