How to use checkval

Danny Kurniawan danny.kurniawan at fairchildsemi.com
Thu Mar 14 07:28:41 CET 2013


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 <list at fajar.net> wrote:

> On Thu, Mar 14, 2013 at 4:44 PM, Danny Kurniawan <
> danny.kurniawan at fairchildsemi.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20130314/d7255d26/attachment-0001.html>


More information about the Freeradius-Users mailing list