diff options
author | Ermal <eri@pfsense.org> | 2010-07-28 21:02:38 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-07-28 21:03:58 +0000 |
commit | 868c6826b523c360f614dfad4498d33b49ae7c82 (patch) | |
tree | 1feb2fe2616f25817c177deb5346ff099c6b2feb /etc/inc/auth.inc | |
parent | a6bd415514380477d790f950efbc3a78526de459 (diff) | |
download | pfsense-868c6826b523c360f614dfad4498d33b49ae7c82.zip pfsense-868c6826b523c360f614dfad4498d33b49ae7c82.tar.gz |
Move the required once in a more appropriate place.
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index f06a4f6..b02d367 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -976,6 +976,8 @@ function radius_backed($username, $passwd, $authcfg){ global $debug, $config; $ret = false; + require_once("radius.inc"); + $rauth = new Auth_RADIUS_PAP($username, $passwd); if ($authcfg) { $radiusservers = array(); @@ -1115,7 +1117,6 @@ function authenticate_user($username, $password, $authcfg = NULL) { $authenticated = true; break; case 'radius': - require_once("radius.inc"); if (radius_backed($username, $password, $authcfg)) $authenticated = true; break; |