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
    557
    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

      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

        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
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.