Possible bug in unlang?

Alan DeKok aland at deployingradius.com
Thu Jul 31 17:57:36 CEST 2008


Phil Mayers wrote:
...
>         expand: %{Stripped-User-Name:-%{User-Name:-none}} -> IC\rmtw
> rlm_sql (sql): sql_set_user escaped user --> 'IC\rmtw'
>         expand: select '%{SQL-User-Name}' -> select 'IC=0Dmtww'
...
> ...so maybe it's the bit that handles xlatname:string?

  I think it's the "sql_set_user" function.  It should create the
SQL-User-Name attribute, and then copy the text string *verbatim*.  It's
the extra layer of parsing through pairmake() that's turning \r into a CR.

  Alan DeKok.



More information about the Freeradius-Users mailing list