Simon White <[EMAIL PROTECTED]> wrote:
> > my NAS (portslave) sending to freeradius accounting packet with
> > calling-station-id = +21234567, and stored it normally into logfile and
> > radutmp. BUT into sql table radacct is stores as =2B21234567
> > asks: how TURN OFF this quoting? where this quoting performed?
>
> =2B is Unicode, for +
>
> Is your DB using Unicode internally? I doubt it's freeradius doing the
> conversion...
It is. See 'src/modules/rlm_sql/rlm_sql.c'.
I've insisted on doing some kind of escaping for SQL, until such
time as we clear up issues related to xlat.
e.g. xlat of %{User-Name} COULD go to "bob". It now goes to bob
(without the quotes). This makes it difficult to properly handle
special characters inside of strings.
For now, the current solution is safe. I don't want to replace/fix
it, until we have a better solution, which is just as safe.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html