Adding vendor specific attributes to dictionary

Ivan Kalik tnt at kalik.net
Fri Oct 9 15:01:09 CEST 2009


> I am attempting to add vendor specific attributes to my dictionary
> without success :(
>
> I was given the following information to add:
>
> Class       Number  Attribute           Value  Type
> VENDORATTR  12345   Vendor-Attribute-A  1      string
> VENDORATTR  12345   Vendor-Attribute-A  2      string
>
>
> Now since VENDORATTR is not a freeradius dictionary format I assume this
> comes from a different RADIUS server, which I need to now implement in
> my freeradius dicitonary.
>
> I have had a look at the dictionary man page, and see that one can use
> ATTRIBUTE for this, but since the Number is the same for both attributes
> I would assume that I need to define a vendor  specific  attribute
> encapsulation so that I can list multiple attributes for this vendor,
> but this does not seem to be working for me - This is what I have done:
>
> File dictionary:
> ----------------
>
> $INCLUDE        /usr/share/freeradius/dictionary
> $INCLUDE        /etc/raddb/dictionary.myvendor
>
>
> File dictionary.myvendor:
> -------------------------
>
> VENDOR       MyVendor     12345
> BEGIN-VENDOR MyVendor
>     ATTRIBUTE Vendor-Attribute-A 1 string
>     ATTRIBUTE Vendor-Attribute-B 2 string
> END-VENDOR   MyVendor


That looks OK.

> When I attempt to start my freeradius server with this dictionary file
> all I get is the following message to std out:
>
> Errors reading dictionary: dict_init: /etc/raddb/dictionary.myvendor[1]:
> dict_init: /etc/raddb/dictionary.myvendor[1]: dict_init: /etc/

Check stuff like permissions on the file.

Ivan Kalik
Kalik Informatika ISP




More information about the Freeradius-Users mailing list