<font face="tahoma,sans-serif">Thanks a lot for your reply.<br><br>Yes i got it working. However one more question :<br><br>what is the operator used to check if the value is empty ?<br><br>if(control:Calling-Station-Id == ""){<br>
reject<br> }<br><br>*not working for above<br><br>So i tried to make sure if the user LDAP attribute for CallingStationID was not set, reject it.<br><br>Thanks<br>Danny<br></font><br><div class="gmail_quote">On Thu, Mar 14, 2013 at 1:52 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net" target="_blank">list@fajar.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Thu, Mar 14, 2013 at 4:44 PM, Danny Kurniawan <span dir="ltr"><<a href="mailto:danny.kurniawan@fairchildsemi.com" target="_blank">danny.kurniawan@fairchildsemi.com</a>></span> wrote:<br>
</div><div class="gmail_extra">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="tahoma,sans-serif"><div> if (control:Calling-Station-Id != "%{Calling-Station-Id"}) <br>
{<br></div> reject<br> }<br><br></font></blockquote><div><br></div></div><div>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.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>-- </div><div>Fajar</div></font></span></div></div></div>
<br>-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br></blockquote></div><br><br clear="all"><br>-- <br><div><font face="tahoma, sans-serif">Best Regards,</font></div>
<div><font face="tahoma, sans-serif">Danny</font></div>