[RADIATOR] tacacs_client_identifier hook not working in 4.21

Heikki Vatiainen hvn at open.com.au
Mon Oct 8 13:56:25 UTC 2018


On 08/10/2018 11.49, Alexander.Hartmaier at t-systems.com wrote:

> On the new servers the OSC-Client-Identifier isn't populated by the 
> PreHandlerHook named 'tacacs_client_identifier' from goodies/hooks.txt.

> Please check if this is a bug, thanks!

This seems to be a bug in the sample hook. Radius::Client::findAddress 
has been documented to use binary address, not string, for a long time 
but it has worked with the both. This did change in 4.21 which caused 
the hook to break.

Doing this before calling findAddress should fix it and also work with 
older versions.

$client_addr = Radius::Util::inet_pton($client_addr);

Thanks for letting us know about this,
Heikki

-- 
Heikki Vatiainen <hvn at open.com.au>

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, TACACS+, PAM, Active Directory,
EAP, TLS, TTLS, PEAP, WiMAX, RSA, Vasco, Yubikey, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, etc.


More information about the radiator mailing list