[RADIATOR] FarmChildHook to rotate AuthPort, AcctPort and DBSource

Heikki Vatiainen hvn at open.com.au
Wed Dec 2 10:11:14 CST 2015


On 1.12.2015 16.18, Christian Kratzer wrote:

>>>       # walk over all AuthBy and Hash database credentials by
>>> farmInstance
>>>       foreach my $auth (@{$main::config->{AuthBy}}) {
>>>          my $id = $auth->{Identifier};
>>
>> You could also fetch the AuthBy handle directly with something like this:
>>
>> my $id = 'SQLauth';
>> my $auth = Radius::AuthGeneric::find($id);

> We use this in multiple different configs so I itentionally put in the
> loop over all authby so it would reach all the various database
> connections.

Ok, I was thinking about the case when just one DB object needs to be 
changed which was not the case you had. Thanks for the clarification.

> if it is ok with you just let it go in as it is.

Yes, that's fine. Thanks again!
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