Hello Andrew:

On Apr 4,  6:46pm, Andrew Pollock wrote:
> Subject: (RADIATOR) Manipulating the contents of a RADIUS packet
> Hi guys,
>
> I have a requirement where I essentially need to:
>
> Copy NAS-IP-Address into NAS-Identifier and prepend a string to it before
> proxying this off to another RADIUS server. I realise I can assign a static
> value into NAS-Identifier by using AddToRequest, but can I do the string
> manipulation required with Radiator as it stands?

Yes, using a PreAuthHook, something like (untested):

PreAuthHook sub {my $nipa = ${$_[0]}->get_attr('NAS-IP-Address');\
        ${$_[0]}->add_attr('NAS-Identifier', "somthing$nipa");}

Hope that helps.

Cheers.

>
> Thanks
>
> Andrew
>
>
> ===
> Archive at http://www.starport.net/~radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.
>-- End of excerpt from Andrew Pollock



-- 
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, 
2000, NT, MacOS X
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to