18 Aug
2016
18 Aug
'16
5:05 a.m.
On Aug 13, 2016, at 8:30 PM, Oleg Palij <o.palij@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.