On 11/04/2014 12:42 PM, Bengi Sağlam wrote: > To solve having multiple attribute problem, I made a small if with the > perl in the PreClientHook by checking the 'Called-Station-Id' attribute, > so the attribute is not added when it exists already.
Hello Bengi, thanks for the update. I am glad to hear your issue has been solved now. > Following > PreClientHook could be a solution for the ones who might have the same > problem like me. Thanks for sharing this! > PreClientHook sub { \ > my $nasId = ${$_[0]}->get_attr('NAS-Identifier'); \ > my $stationId = ${$_[0]}->get_attr('Called-Station-Id'); \ > ${$_[0]}->add_attr('Called-Station-Id',$nasId) unless($stationId); \ > } Best regards, Heikki -- Heikki Vatiainen <h...@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@open.com.au http://www.open.com.au/mailman/listinfo/radiator