summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-12 16:23:14 +0000
committerErmal <eri@pfsense.org>2010-03-12 16:23:14 +0000
commit6e81509680689a68af951d8cee31c0b660b0e6b7 (patch)
tree98b5cea49233ba94a969d126575d9d066c6e0968
parentaa530bf4c01d7ec89d9db8518199f880a509574e (diff)
downloadpfsense-6e81509680689a68af951d8cee31c0b660b0e6b7.zip
pfsense-6e81509680689a68af951d8cee31c0b660b0e6b7.tar.gz
Add includes needed. Fix typo.
-rw-r--r--etc/inc/auth.inc2
-rwxr-xr-xusr/local/www/diag_authentication.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 9ca24b5..fcb90cf 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -932,7 +932,7 @@ function radius_backed($username, $passwd, $authcfg){
foreach ($radiusservers as $radsrv)
$rauth->addServer($radsrv['ipaddr'], $radsrv['port'], $radsrv['sharedsecret']);
- if (PEAR::iserError($rauth->start())) {
+ if (PEAR::isError($rauth->start())) {
$retvalue['auth_val'] = 1;
$retvalue['error'] = $rauth->getError();
if ($debug)
diff --git a/usr/local/www/diag_authentication.php b/usr/local/www/diag_authentication.php
index cc59dc3..5146c01 100755
--- a/usr/local/www/diag_authentication.php
+++ b/usr/local/www/diag_authentication.php
@@ -40,6 +40,8 @@
##|-PRIV
require("guiconfig.inc");
+require_once("PEAR.inc");
+require_once("radius.inc");
require_once("auth.inc");
require("priv.defs.inc");
require("priv.inc");
OpenPOWER on IntegriCloud