(RADIATOR) How to get to particular attribute if set multiple times in radius packet

Hugh Irvine hugh at open.com.au
Sun Apr 28 16:38:04 CDT 2002


Hello Tim -

For this type of problem you are better off writing a PreClientHook that 
walks the attribute list looking for whatever and sets a pseudo-attribute in 
the request that you can then process with a Handler.

regards

Hugh


On Sat, 27 Apr 2002 21:53, Timothy G. Wells wrote:
> Hi Hugh,
>
> The handler fails to see because the attribute is set to the last item
> seen. May I suggest it be placed into an array or a string with all items
> separated by a comma?
>
> -- Tim
>
> -----Original Message-----
>
>    >From: "Hugh Irvine"<hugh at open.com.au>
>    >Sent: 4/27/02 4:23:47 AM
>    >To: "Timothy G. Wells"<Tim.Wells at goodnews.net>,
>    > "radiator at open.com.au"<radiator at open.com.au> Subject: Re: (RADIATOR)
>    > How to get to particular attribute if set multiple times in  radius
>    > packet
>    >
>    >Hello Tim -
>    >
>    >You will have to write a hook that walks the attribute list.
>    >
>    >What happens if you try the Handler that you describe?
>    >
>    >regards
>    >
>    >Hugh
>    >
>    >On Sat, 27 Apr 2002 13:53, Timothy G. Wells wrote:
>    >> Greetings,
>    >>
>    >> I'm sorry to hit with so many questions but I'm finally getting time
>    >> to put in to Radiator. If a radius packet comes to Radiator and it's
>    >> name is duplicated, how do I get to a particular part? For instance
>    >> if I look at %{Service_info} I would get "TX" where I really wish I
>    >> could see "NGood-News-Internet-Service". I want to use this result as
>    >> part of a Handler clause.
>    >>
>    >> Thanks,
>    >>
>    >> -- Tim
>    >>
>    >>
>    >>
>    >>          Acct-Input-Packets = 2214545
>    >>          Acct-Output-Packets = 2439822
>    >>          Framed-Protocol = PPP
>    >>          Service-Info = "NGood-News-Internet-Service"
>    >>          Service-Info = "Urwells"
>    >>          Service-Info = "TX"
>    >>          Acct-Delay-Time = 0
>    >>          Proxy-State = 19c3
>    >>
>    >> ===
>    >> 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.
>    >
>    >--
>    >Radiator: the most portable, flexible and configurable RADIUS server
>    >anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
>    >-
>    >Nets: internetwork inventory and management - graphical, extensible,
>    >flexible with hardware, software, platform and database independence.
>    >===
>    >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.

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
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