Latest 2.5.0 IPSec Xauth PHP crash
On the latest 2.5.0 version (2.5.0.a.20200821.0050) any attempt to connect to a previously working mobile IPSec interface with PSK+Xauth fails with this error:
PHP Fatal error: Uncaught Error: Cannot pass parameter 3 by reference in /etc/inc/ipsec.auth-user.php:95
thrown in /etc/inc/ipsec.auth-user.php on line 95
I've tried re-applying IPSec setup but still throws same error.
Any help much appreciated!
On line 96 of /etc/inc/ipsec.auth-user.php it reads:
$userGroups = getUserGroups($username, $authcfg, array());
Where it should read:
$userGroups = getUserGroups($username, $authcfg, $attributes = array());
To abide by PHP referenced variable.