[ previous ] [ next ] [ threads ]
 From:  "Jonathan De Graeve" <Jonathan dot De dot Graeve at imelda dot be>
 To:  <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  RADIUS question
 Date:  Tue, 8 Nov 2005 17:36:20 +0100
Does anyone knows why there's $clientip instead of $cpdb[$i][2] in this
piece of code?

       /* find an existing entry and delete it */
        for ($i = 0; $i < count($cpdb); $i++) {
                if(!strcasecmp($cpdb[$i][2],$clientip)) {
if(isset($config['captiveportal']['radacct_enable']) &&
isset($radiusservers[0])) {
$cpdb[$i][4], // username
$cpdb[$i][5], // sessionid
$cpdb[$i][0], // start time
$clientip, <=== Why do we use the new ip instead of the previous one
recorded in the database. IMHO this breaks the radius accounting since
the stop will be with the new ip instead of the recorded ip.


Jonathan De Graeve
Network/System Administrator
Imelda vzw
Informatica Dienst
Jonathan dot de dot graeve at imelda dot be