On Thu, 22 Jul 2004, Alejandro Galue wrote:

>
> Hello,
>
> Thanks for the information, I understand that I can?t modify accounting
> response packets.
>
> So I can use instead Access-Accept, to send custom information and create a
> daemon on client machine for process that information.
>
> Please help me how can I modify reply attributes under perl ?

Isn't the example.pl script helpful?
http://www.freeradius.org/cgi-bin/cvsweb.cgi/radiusd/src/modules/rlm_perl/example.pl?rev=1.1&content-type=text/x-cvsweb-markup

>
> Thanks,
> Alejandro.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Kostas
> Kalevras
> Sent: Thursday, July 22, 2004 11:02 AM
> To: [EMAIL PROTECTED]
> Subject: Re: rlm_exec and perl
>
> On Thu, 22 Jul 2004, Alejandro Galue wrote:
>
> >
> > Hello,
> >
> > I'm trying to use rlm_exec to run a perl script in order to add
> > certain radius attributes on Accounting-Response under certain conditions.
> >
> > I anyone know how can access input_pairs and how can I set
> > output_pairs in perl, please help me ?
> >
> > I put this on radiusd.conf
> >
> > exec custom {
> >     wait = yes
> >     program = /usr/local/bin/check-accounting.pl
> >     input-pairs = request
> >     output-pairs = reply
> >     packet-type = Accounting-Request
> > }
> >
> > Thanks in advance...
> >
> > Alejandro Galue.
>
> >From src/main/util.c::rfc_clean:
>
>                 /*
>                  *      Accounting responses can only contain
>                  *      Proxy-State and VSA's.  Note that we do NOT
>                  *      move the Proxy-State attributes over, as the
>                  *      Proxy-State attributes in this packet are NOT
>                  *      the right ones to use.  The reply function
>                  *      takes care of copying those attributes from
>                  *      the original request, which ARE the right ones
>                  *      to use.
>                  */
>
> In general the accounting-response is not required to contain any attributes
> and in the case of radius you can't even add any.
>
> >
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> >
>
> --
> Kostas Kalevras               Network Operations Center
> [EMAIL PROTECTED]     National Technical University of Athens, Greece
> Work Phone:           +30 210 7721861
> 'Go back to the shadow'       Gandalf
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

--
Kostas Kalevras         Network Operations Center
[EMAIL PROTECTED]       National Technical University of Athens, Greece
Work Phone:             +30 210 7721861
'Go back to the shadow' Gandalf

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to