[Radiuscontext-discuss] Adding Fields

Sean Reifschneider jafo@tummy.com
Fri, 26 Jul 2002 00:39:31 -0600


On Thu, Jul 25, 2002 at 05:56:58PM +0200, Cliff Humphreys wrote:
>Can anyone tell me how to add extra fields to the Database / Reports?

All fields in the details file are also stored in the radiusContext
database.

>I would like my reports to include the ip-address and the connection type.
>ie. the fields Nas-Port-Type and Framed-Address

So, basically, all you have to do is to modify the code in the Item()
function in genhtml.py.  In particular, look at the lines under the "write
out record" comment.  To add the columns to the header, look at the Start()
function.

Sean
-- 
 "McGuyver stole all his tricks from Dr. Who."
Sean Reifschneider, Inimitably Superfluous <jafo@tummy.com>
tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python