Different accounting based on avpair



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@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

Attachment: pgpqFBvBfH20K.pgp
Description: PGP signature



This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.