non ascii characters in exec output

Alan DeKok aland at deployingradius.com
Thu Aug 18 11:05:16 CEST 2016


On Aug 13, 2016, at 8:30 PM, Oleg Palij <o.palij at dp.uz.gov.ua> wrote:
> I want to convert it to custom format and log to postauth table:
> authorize {
>  update control {
>    &ms-publishedAt := "%{exec:/etc/freeradius/dn2ou.py %{control:ms-distinguishedName}}"
>  }

  I would suggest just using rlm_python.  It will be faster and simpler

> In script I got UTF-8 string from freeradius, but I can't understand in what encoding I should return result.

  ASCII, usually.

> So it get output as UTF-8 string, but next EXPAND vanishes non-ascii symbols to spaces.

  I don't think there's any code in the server which does that...  so I'm not sure what's going on.

  Alan DeKok.




More information about the Freeradius-Users mailing list