Thanks Alan, I meant something like this: post-auth { if(!(User-Name=="test-user")){ sql exec } Post-Auth-Type REJECT { attr_filter.access_reject sql } } This rule works fine, the idea is that for this user, no data are added to the database (radpostauth and accounting table). Regards On Mon, Jun 28, 2010 at 1:33 PM, Alan DeKok <aland@deployingradius.com> wrote:
JOE wrote:
Hi all
Is possible to add a regular expression to the postauth section as follows?:
Post-Auth-Type REJECT { if(%{User-Name}=="test") {
Hmmm... that isn't a regular rexpression.
And see "man unlang". You can add statements pretty much anywhere.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html