5 * This file is designed as a "script" extension to freeradius (or some such tool) for radius authentication.
6 * Also provided is a simple web interface for managing users in freeradius.
8 * The simple web interface should also provide a mechanism for configuring freeradius itself
12 require_once("lib/authClient.php");
14 $myAC = new GAAuthClient();
16 if(!isset($argv[1])) {
17 echo "Usage: ".$argv[0]." add|auth username passcode\n";
23 if($myAC->authUser($argv[2], $argv[3])==1) {
30 $myAC->addUser($argv[2]);