(RADIATOR) More Diameter patches
Mike McCauley
mikem at open.com.au
Thu Feb 7 16:18:36 CST 2008
Hello José ,
thank you for your very useful contribution.
It has been added with small modifications to the latest patch set.
Thanks again.
Cheers.
On Thursday 07 February 2008 23:16, Jose Borges Ferreira wrote:
> Included in patch is:
>
> 1) In Handler clauses you can catch Diameter attributes:
>
> <Handler DiaRequest:Auth-Application-Id=NASREQ>
> or
> <Handler DiaRequest:Disconnect-Cause=CREDIT_CONTROL>
>
> For now , doesn't go trougth grouped attributes
>
>
>
> 2) Added extra methods to allow
> vendorByName returns vendor data from a given vendor name
> grouped_attr allows easy manipulations of grouped
> attributes Allows this:
>
> $p->add_attr(415, 0, AFLAG_MANDATORY, 0); # Normal add
>
> $p->add_attr([431, 0, AFLAG_MANDATORY, $p->grouped_attr( #
> Grouped attr with 2 attributes
> [421, 0, AFLAG_MANDATORY, 1024000]) ],
> [422, 0, AFLAG_MANDATORY, 100]) ])
> );
>
> $p->add_attr(456, 0, AFLAG_MANDATORY, $p->grouped_attr( #
> grouped Attribute within a grouped attribute
> [431, 0, AFLAG_MANDATORY, $p->grouped_attr(
> [421, 0, AFLAG_MANDATORY, 1024000]) ],
> [432, 0, AFLAG_MANDATORY, 152]
> ));
>
> 3) added avp type vendor, witch is a Unsigned32 variant (like enumerated)
> that tries to translate vendorname to vendornum and vice-versa.
> This is aimed for
> ATTRIBUTE Supported-Vendor-Id 265 vendor
> ATTRIBUTE Vendor-Id 266 vendor
>
> NOTE: The dictionary is not patched, so this wont break anything
>
>
>
> 4) Grouped attributes within grouped attributes are logged with alignments
>
>
> 5) SupportedVendorIds 'This optional parameter allows you to define the
> Supported Vendor Ids anounced in CER. Defaults to BASE(0).
> Keyword "DictVendors" is an alias group for all vendors in your dictionary,
> not included the ones defined as variables , like
> $Radius::DiaAttrList::VCODE's.
>
>
> José Borges Ferreira
>
> PS: These patches have been tested in live enviorment.
--
Mike McCauley mikem at open.com.au
Open System Consultants Pty. Ltd Unix, Perl, Motif, C++, WWW
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.open.com.au
Phone +61 7 5598-7474 Fax +61 7 5598-7070
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP etc on Unix, Windows, MacOS, NetWare etc.
--
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