Check Mb Limit Authentication Program
Written By Andrew Lowe - andrew@pccentre.com.au and
Chris Joyce - chris@pccentre.com.au
Version 0.1.1 - 8th November 2000
you may have to edit the make file for your system
the following are the main ones to watch
MYINCLUDE = -I /usr/local/include/mysql MYLIB = -L /usr/local/mysql/lib -lmysqlclient -lm INSTALLDIR= /usr/local/sbin
it works quite simple ,
ICradius dose a mormal user/pass test then using Exec-Program-Wait we do our own test on the user
to set up the user 'username' to a 100 Meg limit
mysql> INSERT INTO radreply VALUES
('','username','Exec-Program-Wait','/usr/local/sbin/chkmb %u 100') ;
notes :
the install path and program must be able to be executed by ICradius
the test is on the current month ONLY
if smoke comes out of your system , sorry don't blame me !
