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

encode: invalid attributes - must give buffer for unknown attribute 'WISPr-Bandwitdth-Max-Down' #59

Open
nkarabulut381 opened this issue Dec 25, 2021 · 7 comments

Comments

@nkarabulut381
Copy link

I want to add WISPr dictionary but I get encoding error.

I added file dictionary.wispr in dictionary folder

https://opensource.apple.com/source/freeradius/freeradius-11/freeradius/share/dictionary.wispr.auto.html

@muirdm
Copy link

muirdm commented Dec 25, 2021

Looks like you have a typo in WISPr-Bandwitdth-Max-Down (should be WISPr-Bandwidth-Max-Down).

@nkarabulut381
Copy link
Author

The typo here doesn't matter. Including the dictionary, but the attributes is not working.

@muirdm
Copy link

muirdm commented Dec 25, 2021

Can you show the code you are using to try to load the dictionary and use the attribute?

@nkarabulut381
Copy link
Author

I am copying Dictionary.wispr which is the link to the radius/dictionary folder. I'm not doing anything else. because it needs to pull directly from that folder.

How do you think it should be?

@nkarabulut381
Copy link
Author

var dictionary_locations = [path.normalize(__dirname + "/../dictionaries")];

@muirdm
Copy link

muirdm commented Dec 26, 2021

You need to show your code if you want help. The dictionary works fine for me:

var radius = require('radius');

radius.add_dictionary('wispr.dict');

var packet = radius.encode({
  code: "Access-Request",
  secret: "obsidian order",
  attributes: [
    ['Vendor-Specific', 'WISPr', [['WISPr-Bandwidth-Max-Down', 1234]]],
  ]
});

@nkarabulut381
Copy link
Author

It worked this way. I just get the "Unknown Vendor" warning.

thanks

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