How to set Acct-Interim-Interval for all users ?
Hello, How to add the Acct-Interim-Interval attribute for all users ? I'm using freeradius 3 on centos 7. I know that one way is to insert it into the radreply table or the radgroupreply table. If possible, where and how to set it for all users in the config files under /etc/raddb, so I can avoid adding it many times in the mysql tables ? Thank you.
On Mar 9, 2019, at 3:08 AM, John Erickson <johnerickson663@gmail.com> wrote
How to add the Acct-Interim-Interval attribute for all users ? I'm using freeradius 3 on centos 7.
I know that one way is to insert it into the radreply table or the radgroupreply table.
If possible, where and how to set it for all users in the config files under /etc/raddb, so I can avoid adding it many times in the mysql tables ?
You can use the "users" file. In v3, it's in mods-config/files/authorize It has extensive documentation. Alan DeKok.
Thank you, Alan. I have setup freeradius to use mysql to store the username and password. To use the "users" file (it's soft linked to mods-config/files/authorize by default), do I have to make sure that all the "files" entries in the sites-enabled/default file is uncommented, since the "users" file is used by the rlm_files module ? There is a similar thread at http://lists.freeradius.org/pipermail/freeradius-users/2018-January/090137.h..., but the author says he's not quite sure about the following config: sites-enabled/default post-auth { update reply { Acct-Interim-Interval = 3600 } …… } Does this config above is also the right way ? especially if I want to comment the "files" entries in the sites-enabled/default file ? On Sat, Mar 9, 2019 at 9:21 PM Alan DeKok <aland@deployingradius.com> wrote:
On Mar 9, 2019, at 3:08 AM, John Erickson <johnerickson663@gmail.com> wrote
How to add the Acct-Interim-Interval attribute for all users ? I'm using freeradius 3 on centos 7.
I know that one way is to insert it into the radreply table or the radgroupreply table.
If possible, where and how to set it for all users in the config files under /etc/raddb, so I can avoid adding it many times in the mysql tables ?
You can use the "users" file. In v3, it's in mods-config/files/authorize
It has extensive documentation.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
The similar thread's url has a mistake , this is the right url: http://lists.freeradius.org/pipermail/freeradius-users/2018-January/090137.h... On Sat, Mar 9, 2019 at 11:41 PM John Erickson <johnerickson663@gmail.com> wrote:
Thank you, Alan.
I have setup freeradius to use mysql to store the username and password.
To use the "users" file (it's soft linked to mods-config/files/authorize by default), do I have to make sure that all the "files" entries in the sites-enabled/default file is uncommented, since the "users" file is used by the rlm_files module ?
There is a similar thread at http://lists.freeradius.org/pipermail/freeradius-users/2018-January/090137.h..., but the author says he's not quite sure about the following config:
sites-enabled/default post-auth { update reply { Acct-Interim-Interval = 3600 } …… }
Does this config above is also the right way ? especially if I want to comment the "files" entries in the sites-enabled/default file ?
On Sat, Mar 9, 2019 at 9:21 PM Alan DeKok <aland@deployingradius.com> wrote:
On Mar 9, 2019, at 3:08 AM, John Erickson <johnerickson663@gmail.com> wrote
How to add the Acct-Interim-Interval attribute for all users ? I'm using freeradius 3 on centos 7.
I know that one way is to insert it into the radreply table or the radgroupreply table.
If possible, where and how to set it for all users in the config files under /etc/raddb, so I can avoid adding it many times in the mysql tables ?
You can use the "users" file. In v3, it's in mods-config/files/authorize
It has extensive documentation.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Mar 9, 2019, at 10:41 AM, John Erickson <johnerickson663@gmail.com> wrote:
To use the "users" file (it's soft linked to mods-config/files/authorize by default), do I have to make sure that all the "files" entries in the sites-enabled/default file is uncommented, since the "users" file is used by the rlm_files module ?
Yes... to use the "files" module, you need to tell the server to use the "files" module. And it's uncommented in the default config.
There is a similar thread at http://lists.freeradius.org/pipermail/freeradius-users/2018-January/090137.h..., but the author says he's not quite sure about the following config:
sites-enabled/default post-auth { update reply { Acct-Interim-Interval = 3600 } …… }
Does this config above is also the right way ? especially if I want to comment the "files" entries in the sites-enabled/default file ?
Yes, the server works as documented. If you read the "man unlang" documentation, it describes how the "update" section works. And, there are many examples of this in the default configuration. I don't see the point in asking if the server works as documented. Q: Really? A: Yes. Q: No, really? A: Yes. Q: OK... but... really ? Please read the documentation. Your questions are answered there. Alan DeKok.
participants (2)
-
Alan DeKok -
John Erickson