User authorize with Perl-Script

Matthew Newton mcn4 at leicester.ac.uk
Tue Oct 30 17:39:39 CET 2012


On Tue, Oct 30, 2012 at 02:40:35PM +0100, Oliver Werner wrote:
> I would configure my Switch-Ports Mac-Based. When a Computer
> wired a Perl-Script should check the Username and gives VLAN
> back.

You can probably do this without a perl script, however -

> exec {
>         wait = yes
>         program = "/usr/bin/perl /usr/local/test.pl %{User-Name}"
>         input_pairs = request
>         output = reply

  output = config

Currently you're trying to send the cleartext password back to the
NAS...

Matthew


-- 
Matthew Newton, Ph.D. <mcn4 at le.ac.uk>

Systems Architect (UNIX and Networks), Network Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp at le.ac.uk>


More information about the Freeradius-Users mailing list