Huawei dictionary updates

nabble at felix.world nabble at felix.world
Fri Sep 6 08:54:33 UTC 2024


Hi there, 

We had issues with some Huawei switches where the VP-Tuples could not be populated to the python module. 
Turns out, that the dictionary file of Huawei is outdated or at least, the switches we have use a different definition. 


From https://github.com/FreeRADIUS/freeradius-server/blob/v3.2.x/share/dictionary.huawei
The link https://support.huawei.com/enterprise/en/doc/EDOC1100055480/6a2e56b2/description-of-radius-attributes can not be reached anymore. 

The current documentation for our switches regarding the radius attributes is: https://support.huawei.com/enterprise/en/doc/EDOC1000178178/35071f9a/radius-aaa
Also the definition from this guy matches also the one which I have:  https://github.com/FreeRADIUS/freeradius-server/pull/5016

Attribute missmatiching examples: 
FreeRADIUS: 
- 253 = Huawei-Web-URL (string)
- 153 = Huawei-User-Mac (string)
- 154 = Huawei-DNS-Server-IPv6-address (ipv6address)
Huawei: 
- 253 = Huawei-Framed-IPv6-Address (ipaddr)
- 153 = Huawei-Access-Type (integer) 
- 154 = Missing??

I’ve not gone through every attribute from the Huawei. 
Before I open a PR on GitHub I wanted to ask if there is a general process in those dictionary files. Because there will be several devices out there which have the old definition from Huawei. Therefore just changing the dictionary file sound a bit dangerous but FreeRADIUS has also no chance to apply dictionary files based on the version of the switches. 

So is there a process (I couldn't think of one) instead of just updating the dictionary files? 

BR, 
Lineconnect


More information about the Freeradius-Users mailing list