Hi Sander,

On Jun 6, 12:59pm, Sander Asberg wrote:
> Subject: (RADIATOR) AuthBy RADIUS and PostAuthHook
>
> We have the following Situation, in which we use Radiator as
> a radius proxy (AuthBy RADIUS) between the dial-in hardware and
> our customer radius servers:
>
> Client <-(radius)-> Radiator <-(radius)-> customer radius server
>
> If we want some of our customers to specify Framed-IP-addresses for
> their dial-in users, we need to have a mechanism to ensure that
> these addresses are within their IP range.
>
> My thought was, that I could establish this through a PostAuthHook,
> in which I would check the Framed-IP-Address, and accept it if it was
> a valid IP address, and reject it otherwise.
>
> However, in PostAuthHook, $_[1], does not seem to contain the reply
> attributes gotten from the customer radius server. ( $_[1]->count is
> 0. I am able to add attributes with $_[1]->add_attr though!)

Contrary to the documentation that you have, you should be accesing those
functions like this:

${$_[1]}->count
${$_[1]}->add_attr()

etc.


>
> Is this the way to check the Framed-IP-Address? If yes, what is
> wrong with my approach? If not, what other mechanisms can I use
> to ensure correct issueing of IP addresses by customers?
Use PostAuthHook is a good way to do that sort of thing. There are no ways to
do exactly what you want built in to Radiator.


Hope that helps.

Cheers.

>
> regards,
> Sander Asberg
>
>
>
>
> ===
> Archive at http://www.thesite.com.au/~radiator/
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>-- End of excerpt from Sander Asberg



-- 
Mike McCauley                               [EMAIL PROTECTED]
Open System Consultants Pty. Ltd            Unix, Perl, Motif, C++, WWW
24 Bateman St Hampton, VIC 3188 Australia   http://www.open.com.au
Phone +61 3 9598-0985                       Fax   +61 3 9598-0955

Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, TACACS+, PAM, external, etc etc on Unix, Win95/8, 
NT, Rhapsody
===
Archive at http://www.thesite.com.au/~radiator/
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to