OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • [SOLVED] Standard user are unable to see web content after update.
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] Standard user are unable to see web content after update.  (Read 15802 times)

LordD1

  • Newbie
  • *
  • Posts: 11
  • Karma: 4
    • View Profile
[SOLVED] Standard user are unable to see web content after update.
« 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
« Last Edit: April 14, 2015, 11:12:04 am by franco »
Logged

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 907
  • Karma: 184
    • View Profile
Re: Standard user are unable to see web content after update.
« Reply #1 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
Logged

rost

  • Newbie
  • *
  • Posts: 42
  • Karma: 4
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #2 on: April 14, 2015, 04:55:01 pm »
Same issue, when update to 15.1.9-3505b0423.
"No page assigned to this user!..."
Logged

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 907
  • Karma: 184
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #3 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]
<?phperror_reporting(E_ALL);require_once("auth.inc");require_once("priv.inc");print_r( getAllowedPages("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*
    .....
)



Logged

rost

  • Newbie
  • *
  • Posts: 42
  • Karma: 4
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #4 on: April 14, 2015, 10:41:45 pm »
I don't know how to use github, sorry.
Logged

LordD1

  • Newbie
  • *
  • Posts: 11
  • Karma: 4
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #5 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
Logged

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 907
  • Karma: 184
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #6 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.
Logged

rost

  • Newbie
  • *
  • Posts: 42
  • Karma: 4
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #7 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
(
)
« Last Edit: April 15, 2015, 10:48:24 am by rost »
Logged

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 907
  • Karma: 184
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #8 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.
Logged

rost

  • Newbie
  • *
  • Posts: 42
  • Karma: 4
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #9 on: April 17, 2015, 03:14:42 pm »
Update fix my issue.
Logged

weust

  • Hero Member
  • *****
  • Posts: 650
  • Karma: 57
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #10 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.
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

LordD1

  • Newbie
  • *
  • Posts: 11
  • Karma: 4
    • View Profile
Re: [SOLVED] Standard user are unable to see web content after update.
« Reply #11 on: April 19, 2015, 03:18:31 am »
Thanks guys,

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

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • [SOLVED] Standard user are unable to see web content after update.
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2