[RADIATOR] Tunnel-Preference Round-Roubin
Heikki Vatiainen
hvn at open.com.au
Tue Feb 11 10:32:26 CST 2014
On 02/10/2014 04:25 PM, Fabio Prina wrote:
> Till now I've added the Server-Endpoint and the other attrs via a DefaultReply and the Tunnel-Preference via a Hook like:
>
> my $rr = 1;
> sub {
> $rad_output->get_reply->add_attr("Tunnel-Preference", "1: ".($rr++%3));
> $rad_output->get_reply->add_attr("Tunnel-Preference", "2: ".($rr++%3));
> $rad_output->get_reply->add_attr("Tunnel-Preference", "3: ".($rr++%3));
> $rr++
> }
>
> ... now I'm wondering if there is a more simple and clever implementation to do that
> Do you have any idea/suggestion ?
Changing the implementation depends on what else your configuration
needs to be done. Without knowing the details, you might simply just use
AddToReply and separate the attributes=value pairs with commas.
About the hook code, it assigns values like 1:1, 2:2, 3:0.
Thanks,
Heikki
--
Heikki Vatiainen <hvn at open.com.au>
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
NetWare etc.
More information about the radiator
mailing list