[RADIATOR] R: Tunnel-Preference Round-Roubin
Fabio Prina
Fabio.Prina at easynet.com
Thu Feb 13 05:12:41 CST 2014
Hi Heikki,
Really there are not much further details.
My only needed is to return different preference to some static tunnels added with a DefaultReply.
The hook return:
1st request: 1:1, 2:2, 3:0
2nd request: 1:2, 2:0, 3:1
3rd request: 1:0, 2:1, 3:2
4th request: 1:1, 2:2, 3:0zaq1
... and so on
So I can manage my task in this way... I'm just wondering if someone else had the same "problem" and in which way he solved it
Cheers
--
Fabio
-----Messaggio originale-----
Da: radiator-bounces at open.com.au [mailto:radiator-bounces at open.com.au] Per conto di Heikki Vatiainen
Inviato: martedì 11 febbraio 2014 17.32
A: radiator at open.com.au
Oggetto: Re: [RADIATOR] Tunnel-Preference Round-Roubin
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.
_______________________________________________
radiator mailing list
radiator at open.com.au
http://www.open.com.au/mailman/listinfo/radiator
More information about the radiator
mailing list