> From: Alex Chen
> Sent: Friday, 26 September 2003 3:58 AM

> Great!
> 
> Two more questions:
> 
> 1. It seems that 'packet_type' attribute can have only one kind of packet
> type.
>    If I use 'packet_type = Access-Accept Accounting-Request', only the first
> one is taken.
>    If I use 'packet_type = "Access-Accept Accounting-Request"' the server
> choked and
>    complains that "Access-Accept Accounting-Request" is not recognized.
>
>    Does this mean if I want the exec be called on different packet types, I
> have
>    to define multiple instance of it?  It is no big deal, I just need some
> clarification.

Yes. Exec simply compares the Packet-Type value to the type of packet it's
looking at. So you'll need multiple exec's.
 
> 2. If the server is a proxy server, and I want the exec to be called when
> the authentication
>    is successful, i.e. the master server reply with Access-Accept, do I
> still put the exec in
>    'post-auth' section, i.e. the same place when the server is a master
> server itself?
>    What should the input_pairs and output_pairs be using?  'proxy-request'
> and 'proxy-repy'?
>    Will it be OK if I still use 'request' and 'reply' even if the server is
> running as a proxy?

Umm, you could (probably) put it in the post-proxy section.

As for which pairs to use, do you want to operate on the pairs you sent the
proxy, the pairs the proxy sent back, or the pairs you're sending to the client,
or the pairs the client sent to you?

That should determine which of request, reply, proxy-request or proxy-reply you
want. (Not in that order, mind you.)

--
=========================================================
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]

On a sidewalk near Portland State
University someone wrote `Trust Jesus', and
someone else wrote `But Cut the Cards'.
---------------------------------------------------------
Random signature generator 3.0 by Paul "TBBle" Hampson
=========================================================


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

Reply via email to