----------  Forwarded Message  ----------

Subject: BOUNCE [EMAIL PROTECTED]:    Non-member submission from ["Paul 
Thorton" <[EMAIL PROTECTED]>]
Date: Wed, 5 Sep 2001 21:14:06 -0500
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

>From [EMAIL PROTECTED] Wed Sep  5 21:14:06 2001
Received: from avmx.asiaonline.net.au (avmx.asiaonline.net.au [210.215.1.8])
        by server1.open.com.au (8.11.0/8.11.0) with ESMTP id f862E4328432
        for <[EMAIL PROTECTED]>; Wed, 5 Sep 2001 21:14:05 -0500
Received: from asiaonline.net (localhost.localdomain [127.0.0.1])
        by avmx.asiaonline.net.au (8.11.2/8.11.2) with ESMTP id f8640Xh20089
        for <[EMAIL PROTECTED]>; Thu, 6 Sep 2001 14:00:33 +1000
MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-1"
Subject: PreHandlerHook (question)
X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0
Date: Thu, 6 Sep 2001 13:59:33 +1000
content-class: urn:content-classes:message
Message-ID: <[EMAIL PROTECTED]>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: PreHandlerHook (question)
Thread-Index: AcE2iFZHUersV5NTRSiC1XPP+n+isw==
From: "Paul Thorton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by server1.open.com.au id
 f862E6328433

Hi,

I want to be able to use the PreHandlerHook to be able to compare a
radius attribute "Class"
and then change it to something else if matched. Can this be done?

IE. If the incoming packet contains the attribute (Class -> perm) then I
want to be able
to change this to Class -> pstn

This is required in order to stop permanent customers from dialing into
our pstn AS pool.

We have something similar for the other way around, but this just
converts all Class's to perm
and this method will not work the other way as not all Class's will be
pstn only.
I.E.
PreHandlerHook sub { ${$_[0]}->add_attr('Class', 'perm'); }

Thanks,

Paul

-------------------------------------------------------
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to