diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-02 17:10:08 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-02 17:10:08 +0000 |
commit | 006a162f53cf30760b7b3b01cd7970a776f41bff (patch) | |
tree | a74ff716d5aade05578aa27d4afe8d7121e8bc97 /etc/inc/openvpn.auth-user.php | |
parent | c61e4626269fb099f4b7e9c12ceaeffd163c968f (diff) | |
download | pfsense-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-x | etc/inc/openvpn.auth-user.php | 4 |
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) { |