Giter Site home page Giter Site logo

Attribute length limit about node-radius HOT 1 CLOSED

retailnext avatar retailnext commented on September 3, 2024
Attribute length limit

from node-radius.

Comments (1)

psanford avatar psanford commented on September 3, 2024

The length restriction is part of the radius protocol and not specific to this library. The radius protocol uses 1 byte to encode the length of an attribute. Therefore the you cannot store more than 256 characters in a single attribute value.

According to rfc2865 the actual length limit for an attribute is 253 characters so we should probably add an explicit check for that.

I believe the normal way that people work around this restriction is to split long fields into multiple attributes. However remember that the maximum size of a radius packet is 4096 bytes according to rfc2865.

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.