<div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><font class="Apple-style-span" color="#330033">> The next logical step would be to post *that line* from the file, and<br>
ask "What is wrong about it"?</font></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Yes, but I think it is not possible with SQL XLAT. For that reason, f</span>inally, I try with sql.authorize, as Arran advised me, and I think I've achieved the solution. The problem was I didn't understand the rlm_mysql module; I didn't know the authorize function of rlm_mysql.</div>
<div><br></div><div>The solution for my scenario is:</div>
<div><br></div><div><div>                sql.authorize</div><div>                if(notfound){</div><div>                        reject</div><div>                }</div><div>                else{</div><div>                        ok</div>

<div>                }</div><div><br></div><div>This configuration works for me if the NAS sends username and Calling-Station-Id. But I don't know if all comercial NAS send these attributes or only Calling-Station-Id. What do you know about it?</div>

<div><br></div>Thanks for all.</div><div><br></div><div>Regards,</div><div>David</div><div><br></div><div><div class="gmail_quote">2010/11/23 Alan DeKok <span dir="ltr"><<a href="mailto:aland@deployingradius.com" target="_blank">aland@deployingradius.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>David Seira wrote:<br>
> Thanks for your responses.<br>
><br>
> I tried SQL XLAT yesterday but I had the next radiusd -X errors:<br>
><br>
> /usr/local/etc/raddb/sites-enabled/default[598]: Failed to parse "if"<br>
> subsection.<br>
<br>
</div>  The next logical step would be to post *that line* from the file, and<br>
ask "What is wrong about it"?<br>
<br>
  Or, to look at the 2-3 previous error messages above that one, which<br>
likely tell you *what* is wrong.<br>
<div><br>
> I think it is not possible to that with SQL XLAT.<br>
<br>
</div>  Nonsense.<br>
<div><div></div><div><br>
  Alan DeKok.<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>
</div></div></blockquote></div><br></div>