Check traffic quota / rlm_sqlcounter

Alan DeKok aland at deployingradius.com
Wed Apr 7 19:39:47 CEST 2010


Alexander wrote:
> What I would like to do is compare the returned value with another one which represents my traffic quota in bytes:

  See "man unlang"

  In the "authorize" section, do:

	if ("%{sql: SELECT ...quota ...}" <= "%{sql:SELECT ... usage ...}") {
		reject
	}

  Alan DeKok.



More information about the Freeradius-Users mailing list