On Mon, Mar 15, 2004 at 09:34:40AM +0400, Yervand Petrosyan wrote:
> In radius message I'm sending to FreeRadius the with following value(string):
> "'Line_1' <127.0.0.1:5060>(00/R/09431889)"
> Radius server print the same string when receiving it.
> But in database query(in ./radiusd -X mode) it appaires as:
> '=27Line_1=27 =3C127.0.0.1:5060=3E=2800/R/09431889=29'
> and the same storing in database.
> The symbols '<', '>', '(', ')' , ' was replaced by FreeRadius with others.
> Can somebody help me with this kind of problem?
This is done by the SQL module (in rlm_sql.c) to prevent unwanted
interactions with database queries and data sources we cannot control.
You could modify rlm_sql.c to not escape these characters... This is
what I do locally...
Other more general solutions discussed in the list archives (searching
is an exercise left to the reader) include making each SQL module
responsible for its own string escaping, either in the module or using
the SQL client library's functions...
--
Paul "TBBle" Hampson, on an alternate email client.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html