Re: Question about the behavior of sql.conf

2012-12-27 Thread Phil Mayers

On 12/27/2012 06:20 AM, Fajar A. Nugraha wrote:

On Thu, Dec 27, 2012 at 1:00 PM, ichiro tanaka i_tan...@hotmail.co.jp wrote:


I made a set of 'safe-character' connection config of the sql.conf.
However,the safe-character's being used in connection is the last(B)
(When I use the A.but B will be used in this case)

Do you think there is a reason what is this?


Short version: known problem, hard to fix.

http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg72933.html



Actually - not any more! Fixed in HEAD/3.0. We re-worked the xlat stuff 
to pass context arguments to xlat functions. So, safe-characters is 
now per-instance.


I need to add SQL driver-based escaping next.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Question about the behavior of sql.conf

2012-12-27 Thread Phil Mayers

On 12/27/2012 06:00 AM, ichiro tanaka wrote:

Hello

I'm using freeradius 2.1.12. I'm trying to set up sql.conf.
But there is one question.
I made a set of 'safe-character' connection config of the sql.conf.
However,the safe-character's being used in connection is the last(B)
(When I use the A.but B will be used in this case)

Do you think there is a reason what is this?


This is a limitation of 2.x

It is fixed in the master branch, which will become 3.0
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Question about the behavior of sql.conf

2012-12-26 Thread ichiro tanaka




Hello

I'm using freeradius 2.1.12. I'm trying to set up sql.conf. 
But there is one question.
I made a set of 'safe-character' connection config of the sql.conf.
However,the safe-character's being used in connection is the last(B)
(When I use the A.but B will be used in this case)

Do you think there is a reason what is this?
Please tell me if you like...

(debug log)
Thu Dec 27 11:55:42 2012 : Debug: Module: Instantiating module A from file 
/usr/local/radius/etc/raddb/sql.conf
Thu Dec 27 11:55:42 2012 : Debug: A {
.
.
.
Thu Dec 27 11:55:42 2012 : Debug: safe-characters = 
@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_:/!#$%+()=~^[]{}?`*\
Thu Dec 27 11:55:42 2012 : Debug: }
.
.
.
Thu Dec 27 11:55:42 2012 : Debug: Module: Instantiating module B from file 
/usr/local/radius/etc/raddb/sql.conf
Thu Dec 27 11:55:42 2012 : Debug: B {
.
.
.
Thu Dec 27 11:55:43 2012 : Debug: safe-characters = 
@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /
Thu Dec 27 11:55:43 2012 : Debug: }
  -
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Question about the behavior of sql.conf

2012-12-26 Thread Fajar A. Nugraha
On Thu, Dec 27, 2012 at 1:00 PM, ichiro tanaka i_tan...@hotmail.co.jp wrote:

 I made a set of 'safe-character' connection config of the sql.conf.
 However,the safe-character's being used in connection is the last(B)
 (When I use the A.but B will be used in this case)

 Do you think there is a reason what is this?

Short version: known problem, hard to fix.

http://www.mail-archive.com/freeradius-users@lists.freeradius.org/msg72933.html

-- 
Fajar
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html