Default Max-Daily-Session setting and per user setting

Alan DeKok aland at deployingradius.com
Fri Jan 2 14:58:29 CET 2015


On Jan 2, 2015, at 6:46 AM, Matej Žerovnik <matej at zunaj.si> wrote:
> I want to set up default Max-Daily-Session limit for all users to 1h and also have the ability to set up per-user Max-Daily-Session. How can I achieve that?

  Set a global default, and over-ride it with a per-user setting.

> I know I can set per-user limit in radcheck mysql table, but how can I set the default limit that will not overwrite per-user setting?

$ man users

 Which tells you about the operators.  You can do:

authorize {
	…

	sql
	update control {
		Max-Daily-Session = 3600  # for ALL users
	}
	…

}

  The ‘=‘ says “set it, but don’t over-ride it if it already exists”

  Alan DeKok.



More information about the Freeradius-Users mailing list