pg_xtradius - v 1.2 - Simple postgresql auth & acct xtradius plugin

This is an xtradius plugin equivalent to the cistron-postgresql patch you
can find at http://miquels.www.cistron.nl/~miquels/radius/patches/postgresql.patch 

It implements a simple postgresql authentication and logging...
You need to change the dbname and user account at the beginning of the
scripts!
Passwords MUST BE CRYPTED using standard crypt() function!
Timelimit field must contain the allowed connection time window in this format Mon,Tue,We,Th,Fr,Sa,Su
Example 0000-2400,0000-2400,0830-1830,0000-2400,0000-2400,0830-1830,0000-0000

this example  will allow connection on
Monday: from 0000 to 2400
Tuesday: from 0000 to 2400
Wendsay: from 0830 to 1830
Th: from 0000 to 2400
Friday: from 0000 to 2400
Saturday: from 0830 to 1830
Sunday: Never

Here is the database structure.

CREATE TABLE users (pass varchar(16), username varchar(8), timelimit varchar(255));
CREATE TABLE logs (bwin int4, bwout int4, name varchar(32), start datetime, stop datetime);

These scripts need DBI perl intefaces and probably should work with other
DBMS also (like Msql, MySql, Oracle, ecc.)

Hope this helps!
Remeber to visit www.xtradius.com everyday!

Thanks a lot
Natalino Picone (npicone@xtradius.com)
Matteo Colombo (mcolombo@xtradius.com)

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
