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.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html