Git Product home page Git Product logo

accel-ppp's People

Contributors

drdaeman avatar themiron avatar xebd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

accel-ppp's Issues

Username collation

Some ISPs want usernames to be case-insensitive. Or treat underscores and dashes as the same character.
Some allow additional metadata in User-Name string, like username:dynamic or (DOMAIN\\username).
Some want old good exact matches.

Let's introduce a configurable username collation.

Proposed configuration example:

[usernames]
extract=^([^:]+):
on-no-match=use-whole-string
case-sensitive=0
translate="-":"_"
strip=" ","."

Another option would be to support Chargeable-User-Identity (RFC4372) RADIUS attribute to return canonicalized username from RADIUS server. This option should be investigated. Obvious downside is that it is applicable only to RADIUS-based setups, and does not work well with CLI. However, on first glance it feels like a more correct approach.

Handle multiple matching sessions on CoA/PoD

When receiving CoA/PoD packet, only the first matching session is used. Among the supported attributes, User-Name and Calling-Station-Id attributes are not unique (but at least User-Name is forced to be used together with something that would match only single session), and could be shared by multiple sessions. I believe, all of the matching sessions should be handled.

ACK/NAK rules are per RFC5176 sections 2.1 and 2.2:

The NAS responds to a Disconnect-Request packet sent by a Dynamic Authorization Client with a Disconnect-ACK if all associated session context is discarded and the user session(s) are no longer connected, or a Disconnect-NAK, if the NAS was unable to disconnect one or more sessions and discard all associated session context.

The NAS responds to a CoA-Request sent by a Dynamic Authorization Client with a CoA-ACK if the NAS is able to successfully change the authorizations for the user session(s), or a CoA-NAK if the CoA- Request is unsuccessful. A NAS MUST respond to a CoA-Request including a Service-Type Attribute with an unsupported value with a CoA-NAK; an Error-Cause Attribute with value "Unsupported Service" SHOULD be included.

I.e. ACK is sent only if all sessions, matching the request, were processed. This also means that the current behavior of handling only one session is not compliant with the RFC.

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.