diff options
-rw-r--r-- | etc/inc/auth.inc | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_authentication.php | 2 |
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"); |