freeradius and ADSL-Agent-Circuit-Id

Alan DeKok aland at deployingradius.com
Wed Jul 21 11:00:43 CEST 2010


Johan Meiring wrote:
> I'm 100% sure my syntax is wrong today (I'm not an unlang master yet), but
> the idea should work.
> 
> Opinions?

  Close.

- You need to "update" a specific list.
- you need double quotes around string values
- the parser is *very* specific.
  Follow the examples in "man unlang" closely.

authorize {
	...
	if (ADSL-Agent-Circuit-Id && \
		("%{sql: select ...}")) {
		update control {
			Auth-Type := Accept
		}

	}
	else {
		reject
	}

}

  Alan DeKok.



More information about the Freeradius-Users mailing list