Hi,
I gave up on using radacct.cgi since I understand it requires your to
create user accounts on the Radius server to match those in MySQL and
create ~/cgi-bin/.htaccess and .htpasswd simply so that a user can only see
his accounting infos. The whole point of outsourcing user accounts to a
DBMS is precisely to avoid having to customize the Radius server itself,
and keep all user infos in one place.
As an alternative, I'm writing a welcome PHP page, but I need to pass the
user's name as argument to the URL that the WinPoet PPPoE gets when he
connects (I'm a PHP newbie, so there could be a better way, eg. POST
instead of GET, etc.):
AddToReply RB-PPPOE-URL = http://www.acme.com/index.php3?username=%n
- OR-
AddToReply RB-PPPOE-URL = "http://www.acme.com/index.php3?username=%n"
=> Problem is, Radiator send %n verbatim, while it interprets it in
AuthSelect instructions. Any idea how to do this?
------------
For those interested, here's the script:
<?
$host="localhost";
$user="root";
$password="test";
$db = mysql_connect($host,$user,$password);
mysql_select_db("radius",$db);
$result = mysql_query("SELECT * FROM ACCOUNTING WHERE
USERNAME=$username",$db);
printf("Time stamp: %s\n", mysql_result($result,0,"TIME_STAMP"));
?>
Thx
FF.
===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.