How to use checkval

Olivier Beytrison olivier at heliosnet.org
Thu Mar 14 07:41:30 CET 2013


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


More information about the Freeradius-Users mailing list