rlm_rediswho with spaces

Phil Mayers p.mayers at imperial.ac.uk
Fri Oct 26 13:27:09 CEST 2012


On 26/10/12 12:18, Brian Candler wrote:

> is that the expansions of %{Tmp-String-1} and %{Tmp-String-2} are passed via
> redis_escape_function?  That means they would expand to

Yes

>                  if (!radius_xlat(query, sizeof (query), fmt, request, NULL)) {
>
> ...just needs the NULL changing to inst->redis_escape_func.

Probably

> I think there may be a problem with that approach: given
>
>         start-insert = "LPUSH %{User-Name} %{Event-Timestamp},%{Acct-Status-Type},..."
>
> I don't want %{Event-Timestamp} and %{Acct-Status-Type} to be treated as
> separate arguments.

Ah. Then yes, you'll need to parse the string before passing to xlat.


More information about the Freeradius-Devel mailing list