diff options
author | Ermal <eri@pfsense.org> | 2014-09-10 00:08:08 +0200 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-09-10 00:08:08 +0200 |
commit | eadda9670cc035107f2d2220b5285fb99b74fbfb (patch) | |
tree | 5848ff0f168465458159786ff0c1c9382f8d5558 /etc/inc | |
parent | fe06990ec96acd7424edf4115191e8b4fb42d161 (diff) | |
download | pfsense-eadda9670cc035107f2d2220b5285fb99b74fbfb.zip pfsense-eadda9670cc035107f2d2220b5285fb99b74fbfb.tar.gz |
Also here be more strict on checking to return proper result. (some missed from previous commit)
Diffstat (limited to 'etc/inc')
-rwxr-xr-x | etc/inc/ipsec.auth-user.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/ipsec.auth-user.php b/etc/inc/ipsec.auth-user.php index 5dbfd45..8707e02 100755 --- a/etc/inc/ipsec.auth-user.php +++ b/etc/inc/ipsec.auth-user.php @@ -110,7 +110,7 @@ $authenticated = false; if (($strictusercn === true) && ($common_name != $username)) { syslog(LOG_WARNING, "Username does not match certificate common name ({$username} != {$common_name}), access denied.\n"); - if (isset($_GET)) { + if (isset($_GET['username'])) { echo "FAILED"; closelog(); return; @@ -142,7 +142,7 @@ foreach ($authmodes as $authmode) { if ($authenticated == false) { syslog(LOG_WARNING, "user '{$username}' could not authenticate.\n"); - if (isset($_GET)) { + if (isset($_GET['username'])) { echo "FAILED"; closelog(); return; @@ -158,7 +158,7 @@ if (file_exists("/etc/inc/ipsec.attributes.php")) syslog(LOG_NOTICE, "user '{$username}' authenticated\n"); closelog(); -if (isset($_GET)) +if (isset($_GET['username'])) echo "OK"; else exit(0); |