pyradius / pyrad

Python RADIUS Implementation
BSD 3-Clause "New" or "Revised" License
295 stars 186 forks source link

Using TLV Attributes while sending Accounting #108

Open samratashok87 opened 5 years ago

samratashok87 commented 5 years ago

I am trying to send TLV Attributes in Accounting Packets. I have defined the Dictionary file with the TLV attributes in the below format.

ATTRIBUTE Vendor-TLV 5 tlv ATTRIBUTE Vendor-TLV-Attribute1 5.1 string ATTRIBUTE Vendor-TLV-Attribute2 5.2 integer64

Now when I try to send

req["Vendor-TLV-Attribute1"] = "HelloWorld" req["Vendor-TLV-Attribute2"] = 1000000 On sending HelloWorld is getting sent as User-Name which is radius attribute with code 1. Please let me know if my usage of TLV is appropriate.

abeaudin commented 4 years ago

I'm having the same problem. It's not clear to me how to add a tlv attr using pyrad