OPNsense Forum

English Forums => General Discussion => Topic started by: shans22 on August 08, 2019, 11:07:31 pm

Title: FreeRADIUS user attributes
Post by: shans22 on August 08, 2019, 11:07:31 pm
Hello Sense Team.
I apologize for my poor English.
Prompt, it is possible to use additional attributes in settings of users of FreeRADIUS.
For example.
I need to add the service-Type := Administrative-User attribute to one of the users. If I make changes directly to the /raddb/users file, everything works fine after restarting freeradius. But only until the "apply" button is pressed in Services: FreeRADIUS: Users and the /raddb/users file is overwritten.
It is logical to add new fields to the user form.
I added an additional field <label>Service Type</label> to /usr/local/opnsense/mvc/app/controllers/OPNsense/Freeradius/forms/dialogEditFreeRADIUSUser.xml. A new field has appeared in the user form.
Now the problem is in field <id>user._</id> order by pressing the "apply" button the value of the floor is transmitted to the file /raddb/users. Where values are matched <id>user ._</id> and "users" file attributes?
Thank You in advance for your help.
Title: Re: FreeRADIUS user attributes
Post by: mimugmail on August 09, 2019, 06:02:37 am
Please write a list via GitHub Feature requests and I'll take it
Title: Re: FreeRADIUS user attributes
Post by: shans22 on August 09, 2019, 02:58:41 pm
Сreated new issue in a github.com/opnsense/plugins/issues/