Hi Hashim, please look at http://lists.freeradius.org/pipermail/freeradius-devel/2006-February/009440. html I've done it simply adding a call to a function defined on database (mySQL) in an existing query. Ragards