Freeradius 3.0.11 SQL Xlat problem

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sat Mar 5 15:49:00 CET 2016


> On 5 Mar 2016, at 08:45, Alan DeKok <aland at deployingradius.com> wrote:
> 
> On Mar 5, 2016, at 4:54 AM, Devrim Seral <dseral at gmail.com> wrote:
>> 
>> Thanks for your fix. Now Xlat working but server didn't give correct
>> response. I was used following attribute values and operators in my
>> database;
>> 
>> 15GB_Quota_2048KBurst Mikrotik-Xmit-Limit := `%{sql:SELECT 100000}`
>> 15GB_Quota_2048KBurst Mikrotik-Recv-Limit := `%{sql:SELECT
>> trafsumdw('%{User-Name}',15360)}`
> 
>  Use double quotes "".  Not back quotes ``.

Yeah the code might be wrong there too, currently only backticks are being marked for expansion.

Might need to check the behaviour in v2.2.x and see what it was originally intended to be.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20160305/a3533291/attachment.sig>


More information about the Freeradius-Users mailing list