Huawei dictionary updates
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... The link https://support.huawei.com/enterprise/en/doc/EDOC1100055480/6a2e56b2/descrip... 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-... 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
On Sep 6, 2024, at 4:54 AM, nabble@felix.world wrote:
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. ... 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.
It's possible to edit the dictionary files locally, but it is a problem.
So is there a process (I couldn't think of one) instead of just updating the dictionary files?
Unfortunately, no. We're looking at fixing this in v4, but that work is ongoing. Alan DeKok.
Ok, since it’s the actually current documentation, I would create a PR or will it not get accepted? BR, Lineconnect
On 6. Sep 2024, at 15:20, Alan DeKok <aland@deployingradius.com> wrote:
On Sep 6, 2024, at 4:54 AM, nabble@felix.world wrote:
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. ... 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.
It's possible to edit the dictionary files locally, but it is a problem.
So is there a process (I couldn't think of one) instead of just updating the dictionary files?
Unfortunately, no.
We're looking at fixing this in v4, but that work is ongoing.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Sep 6, 2024, at 9:22 AM, nabble@felix.world wrote:
Ok, since it’s the actually current documentation, I would create a PR or will it not get accepted?
What we've done wth other dictionaries is create a duplicate of the current one, and then make changes to the duplicate. That way the dictionary is in the server, and people can edit the various $INCLUDE lines to use the one which they need. There are examples of this already in share/dictionary. Alan DeKok.
participants (2)
-
Alan DeKok -
nabble@felix.world