Ticket #775 (new Bug report)

Opened 7 years ago

Last modified 7 years ago

Call to a member function getId() on a non-object in /var/www/wifidog-auth/wifidog/classes/User.php on line 133

Reported by: fcolista@… Owned by: RPD
Priority: high Milestone: WifiDog Auth Server 1.0
Component: Auth server, Authentication, permissions and access control Version: Auth Server SVN
Keywords: Cc:

Description

When i login in a network with AuthRadius? enabed, i got the error above.

This behaviou occurs in this environment: ubuntu lucid 64 bit: running 2.6.32-24-server apache2 version: 2.2.14-5ubuntu8 libapache2-mod-php5: 5.3.2-1ubuntu4.2

Apache and php runnings with default configuration.

Thanks.

Change History

Changed 7 years ago by Mark Dammer

I am having the same problem on Ubuntu 32bit. I think the core problem is that the login function of the authenticators either returns a user object or "false", what is not an object and makes PHP to throw up a blank page on the client browser. There should be either proper handling of this exception in the code or the authenticators should return an empty object instead of "false" so that PHP can continue.

Changed 7 years ago by Mark Dammer

The problem is line 176 of AuthenticatorRadius?.php: User :: setCurrentUser(null); This part of the login function was meant to fix a possible security hole, but it completely breaks the code. Commenting out this line gets AuthenticatorRadius? going again.

Note: See TracTickets for help on using tickets.