(RADIATOR) Re: Diameter Vendor-Specific-Application-Id - where to place

Mike McCauley mikem at open.com.au
Wed Jan 10 07:26:09 CST 2007


Hello Arthur,

You will need something like this near the end of sub Snd_CEA

    my $group = new Radius::DiaAttrList;
    $group->add_attr($Radius::DiaAttrList::ACODE_VENDOR_ID, 0,
		     $Radius::DiaAttrList::AFLAG_MANDATORY, 0);
    $group->add_attr($Radius::DiaAttrList::ACODE_AUTH_APPLICATION_ID, 0,
		     $Radius::DiaAttrList::AFLAG_MANDATORY, 0x01000000);
    $m->add_attr($Radius::DiaAttrList::ACODE_VENDOR_SPECIFIC_APPLICATION_ID, 
0,
		 $Radius::DiaAttrList::AFLAG_MANDATORY, $group);

Hope that helps.

Cheers.

On Wednesday 10 January 2007 23:09, Arthur Konovalov wrote:
> Mike McCauley wrote:
> > Hello Arthur,
> >
> > On Wednesday 10 January 2007 20:01, Arthur Konovalov wrote:
> >> Trying to add Vendor-Specific-Application-Id AVP-s to CEA, but
> >> unsuccessfully yet.
> >>
> >> My code in diaPeer.pm:
> >>
> >> ********************************
> >> # Vendor-Specific stuff:
> >>
> >> $m->add_attr($Radius::DiaAttrList::ACODE_VENDOR_SPECIFIC_APPLICATION_ID,
> >> 0, $Radius::DiaAttrList::AFLAG_MANDATORY,
> >>          $Radius::DiaAttrList::ACODE_VENDOR_ID, 0,
> >>          $Radius::DiaAttrList::AFLAG_MANDATORY,
> >>          $Radius::DiaAttrList::ACODE_AUTH_APPLICATION_ID, 0,
> >>          $Radius::DiaAttrList::AFLAG_MANDATORY, 1677216
> >>          );
> >
> > That wont work.
> >
> > What attributes are you trying to append?
> > CEA already sends ACODE_SUPPORTED_VENDOR_ID, ACODE_AUTH_APPLICATION_ID
> > and ACODE_ACCT_APPLICATION_ID
>
> I tried add next attribute, like in CER (ethereal trace):
>
>         Vendor-Specific-Application-Id (Grouped) l:0x20 (32 bytes) (32
> padded bytes)
>             AVP Code: Vendor-Specific-Application-Id (260)
>             AVP Flags: 0x40 (Mandatory)
>             AVP Length: 32
>             Vendor-Specific-Application-Id Grouped AVPs
>                 Vendor-Id (VendorId) l:0xc (12 bytes) (12 padded bytes)
>                     AVP Code: Vendor-Id (266)
>                     AVP Flags: 0x40 (Mandatory)
>                     AVP Length: 12
>                     VendorId: Unknown (0)
>                 Auth-Application-Id (AppId) l:0xc (12 bytes) (12 padded
> bytes)
>                     AVP Code: Auth-Application-Id (258)
>                     AVP Flags: 0x40 (Mandatory)
>                     AVP Length: 12
>                     Application ID: Unknown 16777216 (0x01000000)
>
>
> I understood that this grouped AVP and it not depend from other AVP-s.
>
> Regards,
> Arthur

-- 
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