summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.auth-user.php
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-03-02 17:10:08 +0000
committerErmal Luçi <eri@pfsense.org>2010-03-02 17:10:08 +0000
commit006a162f53cf30760b7b3b01cd7970a776f41bff (patch)
treea74ff716d5aade05578aa27d4afe8d7121e8bc97 /etc/inc/openvpn.auth-user.php
parentc61e4626269fb099f4b7e9c12ceaeffd163c968f (diff)
downloadpfsense-006a162f53cf30760b7b3b01cd7970a776f41bff.zip
pfsense-006a162f53cf30760b7b3b01cd7970a776f41bff.tar.gz
Take care of local authentication. Also when the user authenticates do not serach on other authentication sources.
Diffstat (limited to 'etc/inc/openvpn.auth-user.php')
-rwxr-xr-xetc/inc/openvpn.auth-user.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/openvpn.auth-user.php b/etc/inc/openvpn.auth-user.php
index ecde6b6..4b0cd62 100755
--- a/etc/inc/openvpn.auth-user.php
+++ b/etc/inc/openvpn.auth-user.php
@@ -61,10 +61,12 @@ if (!$username || !$password) {
$authenticated = false;
foreach ($authmodes as $authmode) {
$authcfg = auth_get_authserver($authmode);
- if (!$authcfg)
+ if (!$authcfg && $authmode != "local")
continue;
$authenticated = authenticate_user($username, $password, $authcfg);
+ if ($authenticated == true)
+ break;
}
if ($authenticated == false) {
OpenPOWER on IntegriCloud