FreeRadius Config Validation Case Sensitivity
Hi, We're using FreeRadius to validate configurations before deploying them to production. radiusd -CX This works great and catches any invalid dictionary keys or values that have been added to /etc/raddb/mods-config/files/authorize: aa-bb-cc-77-88-99 Reply-Message = "hi" I noticed that these validations are not case sensitive though, and this still passes: aa-bb-cc-77-88-99 reply-message = "hi" Is case checking intentionally skipped? Is this still a valid response to send back? Thanks, Emile
On Nov 9, 2021, at 9:02 AM, Emile Swarts <emile.swarts123@gmail.com> wrote:
We're using FreeRadius to validate configurations before deploying them to production.
radiusd -CX
That's good.
This works great and catches any invalid dictionary keys or values that have been added to /etc/raddb/mods-config/files/authorize:
aa-bb-cc-77-88-99 Reply-Message = "hi"
I noticed that these validations are not case sensitive though, and this still passes:
aa-bb-cc-77-88-99 reply-message = "hi"
Is case checking intentionally skipped? Is this still a valid response to send back?
It's fine. The names in the dictionary files are local to the server. They are never sent "on the wire". Instead, the number of the attribute is sent, as an 8-bit value. And since the number isn't case sensitive, it's fine. Alan DeKok.
On 09/11/2021 14:02, Emile Swarts wrote:
I noticed that these validations are not case sensitive though, and this still passes:
aa-bb-cc-77-88-99 reply-message = "hi"
Is case checking intentionally skipped? Is this still a valid response to send back?
Attribute names are not case sensitive, so it's fine. -- Matthew
That’s great thanks, good to know. Emile On Tue, 9 Nov 2021 at 14:08, Matthew Newton <mcn@freeradius.org> wrote:
On 09/11/2021 14:02, Emile Swarts wrote:
I noticed that these validations are not case sensitive though, and this still passes:
aa-bb-cc-77-88-99 reply-message = "hi"
Is case checking intentionally skipped? Is this still a valid response to send back?
Attribute names are not case sensitive, so it's fine.
-- Matthew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Alan DeKok -
Emile Swarts -
Matthew Newton