diff --git a/src/etc/inc/ipsec.auth-user.php b/src/etc/inc/ipsec.auth-user.php index cd5e74a96..aeba36488 100755 --- a/src/etc/inc/ipsec.auth-user.php +++ b/src/etc/inc/ipsec.auth-user.php @@ -242,7 +242,7 @@ foreach ($authmodes as $authmode) { if (!$authcfg && $authmode != "local") continue; - $authenticated = authenticate_user($username, $password, $authcfg, $attributes); + $authenticated = authenticate_user($username, $password, $authcfg); if ($authenticated == true) { if (stristr($authmode, "local")) { $user = getUserEntry($username); diff --git a/src/etc/inc/openvpn.auth-user.php b/src/etc/inc/openvpn.auth-user.php index f27863276..f8f36d856 100644 --- a/src/etc/inc/openvpn.auth-user.php +++ b/src/etc/inc/openvpn.auth-user.php @@ -249,7 +249,7 @@ foreach ($authmodes as $authmode) { if (!$authcfg && $authmode != "local") continue; - $authenticated = authenticate_user($username, $password, $authcfg, $attributes); + $authenticated = authenticate_user($username, $password, $authcfg); if ($authenticated == true) break; }