(RADIATOR) Interesting Request

Mike McCauley mikem at open.com.au
Fri Aug 19 18:29:13 CDT 2005


Hello Miko,

On Saturday 20 August 2005 04:09, miko at yournetplus.com wrote:
> Does anyone on the list know if there is a way to reference in a hook
> what IP Address a radius request was sent to on a multihomed system???

Hmm, it would be a bit tricky.
Each received request has a reference to the socket it was received on saved 
in $p->{RecvSocket}. You might be able to get the information you need with a 
getsockopt(). 
Also, all the current Radius sockets are stored in a hash like so 
$main::radius_sockets{$bind_address}{$port}

so by doing a search in that hash for the socket you may be able to find the 
bind address and port of the socket that received the request.

Hope that helps.

Cheers.

>
> Basically I have my radiator process tied to multiple IP addresses on my
> server and I would like to parse the requests based on what IP Address
> my NASes sent the request to...
>
> Thanks in advance,
> -Miko
>
> --
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' with
> 'unsubscribe radiator' in the body of the message.

-- 
Mike McCauley                               mikem at open.com.au
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
9 Bulbul Place Currumbin Waters QLD 4223 Australia   http://www.open.com.au
Phone +61 7 5598-7474                       Fax   +61 7 5598-7070

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 etc on Unix, Windows, MacOS etc.

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list