How to use checkval
Danny Kurniawan
danny.kurniawan at fairchildsemi.com
Thu Mar 14 07:52:28 CET 2013
Thanks Olivier.
yes previous message has been resolved. Thanks a lot. Let me try your
suggestion.
-Danny
On Thu, Mar 14, 2013 at 2:41 PM, Olivier Beytrison <olivier at heliosnet.org>wrote:
> On 14.03.2013 07:28, Danny Kurniawan wrote:
> > 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
> > }
>
> if(!control:Calling-Station-Id) {
> reject
> }
>
> this will be true if the attribute doesn't exist.
>
> and btw, on your previous messages :
>
> if (control:Calling-Station-Id != "%{Calling-Station-Id"})
> last " is misplaced
> if (control:Calling-Station-Id != "%{Calling-Station-Id}")
>
> Olivier
>
> --
>
> Olivier Beytrison
> Network & Security Engineer, HES-SO Fribourg
> Mail: olivier at heliosnet.org
> -
> 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/edb0e810/attachment.html>
More information about the Freeradius-Users
mailing list