On Dec 10, 2018, at 4:11 PM, CALMELS, Thierry (SOGETI REGIONS SAS) <thierry.calmels.external@airbus.com> wrote:
I am trying to give you more details
That's good.
The perl module has been enabled in '/etc/raddb/sites-available/default' as below
authenticate {
Auth-Type Perl { perl }
OK...
authorize { … files perl if (ok || updated) { update control { Auth-Type := Perl }
Which forces the server to use "Auth-Type perl" if the "perl" module returns "ok || updated"
}
The custom script perl is invoked since '/etc/raddb/mods-enabled/perl' perl { … filename = ${modconfdir}/${.:instance}/radius_proxy.pl
That's fine.
This might not work if you're already using the "users" file to do other things. But since you're not really describing what you're doing, I can't really help much more than that I don't use the "users" file for anything else. As you see the 'files' module was configured before 'perl'. But unfortunately this configuration (and your proposal) seems not suitable:(
The configuration you posted here is *not* what I proposed that you use. Please go back and read my message again. Alan DeKok.