summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/radius_authentication.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-08 18:19:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-08 18:19:04 +0000
commit269239d751d996f79d860fdc0ede7d707c760848 (patch)
tree14c90ce7b8d59f8def167c2a0e26b114abdea661 /usr/local/captiveportal/radius_authentication.inc
parentdd78523c20aa4513c4b69cd6c6f03cdacbf403e2 (diff)
downloadpfsense-269239d751d996f79d860fdc0ede7d707c760848.zip
pfsense-269239d751d996f79d860fdc0ede7d707c760848.tar.gz
Revert back to 1.2b3 now that we are using a different radius patch.
Diffstat (limited to 'usr/local/captiveportal/radius_authentication.inc')
-rw-r--r--usr/local/captiveportal/radius_authentication.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/captiveportal/radius_authentication.inc b/usr/local/captiveportal/radius_authentication.inc
index 5aaa5c7..10a2009 100644
--- a/usr/local/captiveportal/radius_authentication.inc
+++ b/usr/local/captiveportal/radius_authentication.inc
@@ -34,12 +34,12 @@ function RADIUS_AUTHENTICATION($username,$password,$port_type,$radiusip,$radiusp
exec("/bin/hostname", $nasHostname) ;
if(!$nasHostname[0])
- $nasHostname[0] = "pfSense" ;
+ $nasHostname[0] = "m0n0wall" ;
$fd = @fsockopen("udp://$radiusip",$radiusport,$errno,$errstr,3) ;
- if(!$fd)
+ if(!$fd)
return 1 ; /* error return */
-
+
/* set 5 second timeout on socket i/o */
stream_set_timeout($fd, 5) ;
@@ -81,10 +81,10 @@ function RADIUS_AUTHENTICATION($username,$password,$port_type,$radiusip,$radiusp
echo "username is $username with len " . strlen($username) ."\n" ;
echo "encryptedpassword is $encryptedpassword with len " . strlen($encryptedpassword) ."\n" ;
echo "nasHostname is {$nasHostname[0]} with len " . strlen($nasHostname[0]) ."\n" ;
- }
+ }
$ret = fwrite($fd,$data) ;
- if( !$ret || ($ret != $length) )
+ if( !$ret || ($ret != $length) )
return 1; /* error return */
if ($debug)
OpenPOWER on IntegriCloud