node-radius icon indicating copy to clipboard operation
node-radius copied to clipboard

Disconnect-Request not work

Open rodrigoadachi opened this issue 1 year ago • 1 comments

A small snippet of code

I can't request the user to disconnect, it doesn't happen

` const encoded = radius.encode({ code: 'Disconnect-Request', secret: this.secret, identifier: 0, attributes: [ ['User-Name', connect.username], ['NAS-Identifier', 'MikroTik'], ] });

this.server.send(
  encoded,
  0,
  encoded.length,
  3799, '127.0.0.1', (err, bytes) => {

    if (err) {
      console.log('Error sending response to ');
      console.log(err);
    }
    console.log(bytes);
  });

`

rodrigoadachi avatar May 08 '23 14:05 rodrigoadachi

At least two identifying attributes for a session are required in order for the NAS to act on a disconnect request or change of authorization request.

skibz avatar Oct 24 '23 21:10 skibz