OPNsense Forum
English Forums => General Discussion => Topic started by: LordD1 on April 13, 2015, 09:00:19 pm
-
Hello
After performing 15.1.9-amd64 update I starting seeing 201 error when I log in. This seems to happen any user expect the root user. The user the is set up under the admin group and never had a issue until after the llatest update.
Attempted to create a new account with the same admin credential and also performed a reboot(you never know).
But still received the same 201 error "No page assigned to this user! Click here to logout.". Any suggestion will be very appreciated.
Best Regards
LordD1
-
Hi,
Found it, it's a bug. It's fixed in https://github.com/opnsense/core/commit/ee7be889edc930958d7a35b2a7afacec66f35191 and will be in the next release.
Cheers,
Ad
-
Same issue, when update to 15.1.9-3505b0423.
"No page assigned to this user!..."
-
Just to be sure, have you checked out via github?
The issue was in the call to getAllowedPages, if you like you could test the output of that call by creating a script with the following content and executing it with php (replace test for your username):
filename: /tmp/test.php
content:
<?php
error_reporting(E_ALL);
require_once("auth.inc");
require_once("priv.inc");
print_r( getAllowedPages("test") );
?>
executing : php /tmp/test.php should deliver something like:
Array
(
[0] => *
[1] => index.php*
[2] => *.widget.php*
[3] => graph.php*
[4] => graph_cpu.php*
.....
)
-
I don't know how to use github, sorry.
-
Hello,
I also performed the update as well and still see the error message. Created a test user and performed the code on the firewall. Wasn't able to get the results like AdSchellevis mention. Below is the results I got.
php /tmp/test.php
Notice: Undefined index: authmode in /usr/local/etc/inc/priv.inc on line 229
Notice: Undefined index: authserver in /usr/local/etc/inc/auth.inc on line 1248
Notice: Undefined index: priv in /usr/local/etc/inc/priv.inc on line 203
Notice: Undefined index: member in /usr/local/etc/inc/auth.inc on line 539
Array
(
)
Best Regards,
LordD
-
To be very sure, you checkout the code via github and changed the username to a valid one? This code will be in the following release at the end of this week.
From rost's reaction I figured he was testing with the current (defective) version, so that makes sense :)
If the problem still persists, I probably need some more info. In that case, can you create a new group with some privileges and put in a new user with some other privileges in and run the test script again for that user. It should output both privileges.
-
execut php /tmp/test.php
Notice: Undefined index: authmode in /usr/local/etc/inc/priv.inc on line 229
Notice: Undefined index: authserver in /usr/local/etc/inc/auth.inc on line 1248
Notice: Only variable references should be returned by reference in /usr/local/etc/inc/auth.inc on line 237
Array
(
)
I can create users and groups, but can't use this!!! Work only root account.
Create user "test"
execut php /tmp/test.php
Notice: Undefined index: authmode in /usr/local/etc/inc/priv.inc on line 229
Notice: Undefined index: authserver in /usr/local/etc/inc/auth.inc on line 1248
Notice: Undefined index: priv in /usr/local/etc/inc/priv.inc on line 203
Notice: Undefined index: member in /usr/local/etc/inc/auth.inc on line 539
Array
(
)
-
Maybe it's better to test using the next release at the end of this week, I really think it works when you have the latest code on your machine.
-
Update fix my issue.
-
Updated mine this morning, and I can login without a problem with a non-root-user too.
-
Thanks guys,
Just updated and everything looks good on my end as well.