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 <[email protected]>

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
[email protected]
http://www.open.com.au/mailman/listinfo/radiator

Reply via email to