• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Latest 2.5.0 IPSec Xauth PHP crash

IPsec
ipsec php crash beta
1
2
556
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    basicmonkey
    last edited by basicmonkey Aug 21, 2020, 7:45 PM Aug 21, 2020, 7:44 PM

    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
    Stack trace:
    #0 {main}
    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!

    Thanks,

    James

    1 Reply Last reply Reply Quote 0
    • B
      basicmonkey
      last edited by Aug 21, 2020, 8:40 PM

      Sorted it.

      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.

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.