Giter Site home page Giter Site logo

Comments (4)

muirdm avatar muirdm commented on July 29, 2024

Thank you for your report.

This library does not currently support dictionaries using the implicit attribute prefix method of specifying the vendor. If you add an explicit "BEGIN-VENDOR 3GPP" ... "END-VENDOR 3GPP" block around the attributes, it should work. See http://freeradius.org/radiusd/man/dictionary.html for more information.

from node-radius.

borushka avatar borushka commented on July 29, 2024

Thanks for the prompt reply. You can easily fix it in radius.js. Just add the line code marked in bold.

var match = line.match(/^\s*VENDOR\s+(\S+)\s+(\d+)/);
if (match) {
  vendor_name_to_id[match[1]] = match[2];
  **vendor = match[1];**
  continue;
}

from node-radius.

muirdm avatar muirdm commented on July 29, 2024

It seems like that would work, but according to the freeradius man page, the "VENDOR" directive only defines a vendor (it does not imply the below attributes VSAs are for that vendor, as your patch infers). For example, you could have a dictionary that declares multiple vendors at the top, then declares attributes for each vendor below.

Based on the documentation, the correct approach is to look at the prefix of the attribute name (e.g. "3GPP-IMSI") and see that the previously defined vendor "3GPP" is a prefix if the attribute name. This is a pretty lame way to do it, which is why we prefer the explicit BEGIN-VENDOR/END-VENDOR.

from node-radius.

borushka avatar borushka commented on July 29, 2024

Thanks for the detailed explanation.

from node-radius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.