Closed johanteekens closed 6 years ago
hi @johanteekens thanks for opening the issue, i will whip something up as soon as possible!
@johanteekens the best place to refer to is here (the library supporting tephra) -- their examples show instances of the way attributes and vendor specific attributes are declared in packet encoding functions.
with that in mind, some things to take note of:
return accept(
[ // attributes
['attr-1', 'val-1'],
['attr-2', 'val-2']
],
[ // vendor attributes
['vendor-attr-1', 'vendor-val-1'],
['vendor-attr-2', 'vendor-val-2']
],
console.log
)
return accept(
[ // attributes
['attr-1', 'val-1'],
['attr-2', 'val-2']
],
[ // vendor attributes
],
console.log
)
please don't hesitate to get in contact again if this explanation doesn't suffice!
Awesome, problem solved. works perfectly. I'm actually adding an office 365 authentication module, allowing users to authenticate with office 365 credentials and passing their ACL to the network devices. I just got the thing going using using this module.
happy to help!
I've been fiddling around with this project and it seem to work perfectly fine for what I tried. My compliments. I just don't understand how to include [/ attributes /] and [/ vendor attributes /] in my server.
Could you please, please elaborate on this or maybe update your example code?