Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disconnect-Request not work #67

Open
rodrigoadachi opened this issue May 8, 2023 · 1 comment
Open

Disconnect-Request not work #67

rodrigoadachi opened this issue May 8, 2023 · 1 comment

Comments

@rodrigoadachi
Copy link

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);
  });

`

@skibz
Copy link
Contributor

skibz commented Oct 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants