Nas-IP-Address regexp matching in hints/huntgroups working in 2.2.0 and not in 3.0.13

Alan DeKok aland at
Wed Dec 6 23:11:49 CET 2017

On Dec 6, 2017, at 11:39 AM, Gianni Costanzi <gianni.costanzi at> wrote:
> You’re right, I’ll try to find the time to learn about unlang and
> understand where I should implement the wanted behavior.. I’m in a hurry
> with this activity and the first step was trying to make it work with the
> old Conf. I think it should not be a problem to do user manipulation with
> unlang instead of hints file, but I can I also set hunt groups with unlang
> in order to be able to match them within the users file?

  No, but you can set another attribute in "unlang" and check it in the "users" file.

  See raddb/dictionary for instructions on creating local attributes.  Create a "string" attribute with a name like "My-Group".

  Then, set it in unlang:

	update request {
		My-Group := "foo"

  And check it in the "users" file:

DEFAULT	My-Group == "foo" ...

  Alan DeKok.

More information about the Freeradius-Users mailing list