summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal/radius_authentication.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-15 19:54:55 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-15 19:54:55 +0000
commit29a5799fb67388dd39e131b48e02462d604d9bfb (patch)
treef7bbb720772697f28fdeb33e55528a5a7638b576 /usr/local/captiveportal/radius_authentication.inc
parentcd9a0cc62d8431e46fd2f7671e0e80226c2221ff (diff)
downloadpfsense-29a5799fb67388dd39e131b48e02462d604d9bfb.zip
pfsense-29a5799fb67388dd39e131b48e02462d604d9bfb.tar.gz
m0n0wall -> pfSense
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 10a2009..5aaa5c7 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] = "m0n0wall" ;
+ $nasHostname[0] = "pfSense" ;
$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