]> git.gsnw.org Git - m0n0chwall.git/commitdiff
Fix both Authentication and Accounting to use Service-Type: Login
authorjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Tue, 28 Mar 2006 07:53:10 +0000 (07:53 +0000)
committerjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Tue, 28 Mar 2006 07:53:10 +0000 (07:53 +0000)
git-svn-id: https://svn.m0n0.ch/wall/trunk@111 e36fee2c-cc09-0410-a7cc-ebac5c6737de

captiveportal/radius_accounting.inc

index cc80553bba0ae6b273ab99912c6f733d12aa153a..9f9064d532e0b55d79f0d65c806d95f18b364666 100644 (file)
@@ -106,7 +106,7 @@ function RADIUS_ACCOUNTING_START($ruleno,$username,$sessionid,$radiusip,$radiusp
      */
 
     // Default attributes
-    $racct->putAttribute(RADIUS_SERVICE_TYPE, RADIUS_OUTBOUND);
+    $racct->putAttribute(RADIUS_SERVICE_TYPE, RADIUS_LOGIN);
     $racct->putAttribute(RADIUS_NAS_PORT_TYPE, RADIUS_ETHERNET);
     $racct->putAttribute(RADIUS_NAS_PORT, $nas_port);
     $racct->putAttribute(RADIUS_ACCT_SESSION_ID, $sessionid);
@@ -221,7 +221,7 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius
     define("RADIUS_ACCT_OUTPUT_GIGAWORDS", "53");
 
     // Default attributes
-    $racct->putAttribute(RADIUS_SERVICE_TYPE, RADIUS_OUTBOUND);
+    $racct->putAttribute(RADIUS_SERVICE_TYPE, RADIUS_LOGIN);
     $racct->putAttribute(RADIUS_NAS_PORT_TYPE, RADIUS_ETHERNET);
     $racct->putAttribute(RADIUS_NAS_PORT, $nas_port);
     $racct->putAttribute(RADIUS_ACCT_SESSION_ID, $sessionid);