[isf-wifidog] Strings at Radius Authenticator

José Eduardo Martins josenunesmartins at gmail.com
Mar 20 Mai 11:05:12 EDT 2008


I'm using the SVN version of wifidog-auth and wifidog (gateway).

After some debuging (2 days well spent), I've found that I needed to 
trim the auth strings that I configured from the auth server.

Following is a patch to the changes I've made.


diff -Nru 
wifidog-auth/wifidog/classes/Authenticators/AuthenticatorRadius.php 
../wifidog-auth/wifidog/cl
asses/Authenticators/AuthenticatorRadius.php
--- wifidog-auth/wifidog/classes/Authenticators/AuthenticatorRadius.php 
2008-05-20 15:51:02.000000000 +0
100
+++ 
../wifidog-auth/wifidog/classes/Authenticators/AuthenticatorRadius.php      
2008-05-15 18:12:55.0000
00000 +0100
@@ -186,6 +186,9 @@
              * CHAP_MD5 :Challenge-Handshake Authentication Protocol 
with MD5
              * MSCHAPv1 and MSCHAPv2: Microsoft's CHAP implementation
              */
+            
$this->mRadius_encryption_method=trim($this->mRadius_encryption_method);
+            $this->mRadius_hostname=trim($this->mRadius_hostname);
+            $this->mRadius_secret_key=trim($this->mRadius_secret_key);
             switch ($this->mRadius_encryption_method) {
             case "PAP":
             case "CHAP_MD5":



Plus d'informations sur la liste de diffusion WiFiDog