Running an external script
tnt at kalik.net
tnt at kalik.net
Thu Mar 12 11:49:10 CET 2009
>In my my inner-tunnel virtual server, authorize section, I have some
>code like this, for sorting users into vlans:
>
> update control {
> Tunnel-Type := "VLAN"
> Tunnel-Medium-Type := "IEEE-802"
> Tunnel-Private-Group-Id :=
>`/usr/local/etc/raddb/scripts/userVlan.pl %{User-Name} 2>/dev/null`
> }
What does that do? Nothing me thinks ;-)
> update reply {
> Tunnel-Type := "VLAN"
> Tunnel-Medium-Type := "IEEE-802"
> Tunnel-Private-Group-Id :=
>`/usr/local/etc/raddb/scripts/userVlan.pl %{User-Name} 2>/dev/null`
> }
Or replace that just with:
perl
And crete sub authorize in your script that will populate $RAD_REPLY for
those attributes. See rlm_perl wiki page or documentation included with
the server.
Ivan Kalik
Kalik Informatika ISP
More information about the Freeradius-Users
mailing list