Hi Alan,
In 3.0 it seems that the use of regex from a db has been removed. Is there a way to make it work ?
Use unlang. :(
I was pretty sure that this was going to be the answer...
The goal We use different checks in different groups and assign the user to the correct group for the service he has purchased. If there is another way to accomplish this I am all ears.
You can do unlang checking before running the "files" module:
if (NAS-Port-Type =~ /Ethernet|Virtual|PPPoEoVLAN/) { update request { My-NAS-Port-Type := E_V_PPP } } ...
And then in the DB, do:
My-NAS-Port-Type == E_V_PPP
You'll have to edit raddb/dictionary to add My-NAS-Port-Type as an attribute of type "string". You can do similar things for other attributes.
That's imperfect, but it involves minimal changes to the database contents.
Ok custom attributes it is Thanks Brian