Different accounting based on avpair

Nuno Pais Fernandes npf at eurotux.com
Wed Nov 15 19:17:37 CET 2006


Hi,

I've been searching the ML for something related to this without any success.
I don't know if freeradius does what i need and correct me if i'm wrong.

I want to freeradius insert/update different sql tables using a avpair from my 
custom dictionary. What i would like is somthing like this:

"if avpair Wireless = yes use accounting module sql1
else use accounting module sql2"

accounting {
	acct_unique
	sql1 if (Wireless = yes) 
	sql2 if (Wireless != yes)
}

Could it be done with users file?

Thanks,
-- 
Nuno Miguel Pais Fernandes <npf at eurotux.com>
Cisco Certified Network Associate
Oracle Certified Professional
Eurotux Informática, S.A. [http://eurotux.com]
Rua Rosalvo de Almeida, 5. 4710-429 BRAGA PORTUGAL
Tel: (+351) 253 257395 - Fax: (+351) 253 257396
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20061115/1044a5bf/attachment.pgp>


More information about the Freeradius-Users mailing list