Re: rlm_sql_postgresql and plus sign
Michele Petrazzo michele.petra...@unipex.it writes: today I discover a strange behaviour with FR and the PG backend: if the authorize_group_check_query query returns a value that has a plus sign (+) inside the groupname, FR thread that value as unicode. I think this because into the next authorize_group_reply_query query, it use the '=2B' chars. look near the top of raddb/sql/postgresql/dialup.conf : # Safe characters list for sql queries. Everything else is replaced # with their mime-encoded equivalents. # The default list should be ok # safe-characters = @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: / Bjørn - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: rlm_sql_postgresql and plus sign
Bjørn Mork wrote: look near the top of raddb/sql/postgresql/dialup.conf : # Safe characters list for sql queries. Everything else is replaced # with their mime-encoded equivalents. # The default list should be ok # safe-characters = @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: / My fault. Only for curiosity, these chars are hard-coded inside the sources or in other place and loaded at startup? Thanks, Michele - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: rlm_sql_postgresql and plus sign
Michele Petrazzo michele.petra...@unipex.it writes: Only for curiosity, these chars are hard-coded inside the sources or in other place and loaded at startup? defined like any other module option default in src/modules/rlm_sql/rlm_sql.c : static const CONF_PARSER module_config[] = { /* .. */ {safe-characters, PW_TYPE_STRING_PTR, offsetof(SQL_CONFIG,allowed_chars), NULL, @abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /}, /* .. */ }; Bjørn - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html