OPNsense Forum

English Forums => General Discussion => Topic started by: LordD1 on April 13, 2015, 09:00:19 pm

Title: [SOLVED] Standard user are unable to see web content after update.
Post 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
Title: Re: Standard user are unable to see web content after update.
Post by: AdSchellevis on April 14, 2015, 10:27:42 am
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
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: rost on April 14, 2015, 04:55:01 pm
Same issue, when update to 15.1.9-3505b0423.
"No page assigned to this user!..."
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: AdSchellevis on April 14, 2015, 05:06:21 pm
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:
Code: [Select]
<?php
error_reporting
(E_ALL);
require_once(
"auth.inc");
require_once(
"priv.inc");
print_rgetAllowedPages("test") );
?>


executing : php /tmp/test.php should deliver something like:
Code: [Select]
Array
(
    [0] => *
    [1] => index.php*
    [2] => *.widget.php*
    [3] => graph.php*
    [4] => graph_cpu.php*
    .....
)



Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: rost on April 14, 2015, 10:41:45 pm
I don't know how to use github, sorry.
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: LordD1 on April 15, 2015, 05:25:42 am
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.

 
Code: [Select]
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
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: AdSchellevis on April 15, 2015, 08:30:03 am
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.
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: rost on April 15, 2015, 10:40:45 am
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
(
)
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: AdSchellevis on April 15, 2015, 10:51:55 am
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.
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: rost on April 17, 2015, 03:14:42 pm
Update fix my issue.
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: weust on April 17, 2015, 03:17:05 pm
Updated mine this morning, and I can login without a problem with a non-root-user too.
Title: Re: [SOLVED] Standard user are unable to see web content after update.
Post by: LordD1 on April 19, 2015, 03:18:31 am
Thanks guys,

Just updated and everything looks good on my end as well.